blob: db30d6beca9965856ed71c94bb2a4ffa998e3285 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=py-pickleshare
pkgver=0.7.4
pkgrel=0
pkgdesc="File system based database that uses python pickles"
url="https://github.com/pickleshare/pickleshare"
arch="noarch"
license="MIT"
options="!check" # No test suite
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$pkgname-$pkgver.tar.gz::https://github.com/pickleshare/pickleshare/archive/$pkgver.tar.gz"
builddir="$srcdir/${pkgname#py-}-$pkgver/"
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
package() {
cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
_py2() {
depends="${depends//py-/py2-}"
_py python2
}
_py3() {
depends="${depends//py-/py3-}"
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
sha512sums="f11856fa5215337da05c59a541a8763712b3640aed02b170fc0a071ee0af5b78b46a84fc44dfc66e25e7e4ef830f342b22203ec6b87cf3820b4d9d6e17e9d6c5 py-pickleshare-0.7.4.tar.gz"
|