diff options
author | Kevin Daudt <ops@ikke.info> | 2018-09-15 15:21:21 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2018-09-17 06:36:13 +0000 |
commit | d33a469e6b1d39760196d5d68f01ac1353f70b13 (patch) | |
tree | 13e2726ac7a6afb8902f6d347c9f388d3eb54087 /testing | |
parent | ac0b1448c65e97f106708644b9a1b1b624518783 (diff) | |
download | aports-d33a469e6b1d39760196d5d68f01ac1353f70b13.tar.bz2 aports-d33a469e6b1d39760196d5d68f01ac1353f70b13.tar.xz |
testing/py-pickleshare: new aport
dependency for ipython
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-pickleshare/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/py-pickleshare/APKBUILD b/testing/py-pickleshare/APKBUILD new file mode 100644 index 0000000000..db30d6beca --- /dev/null +++ b/testing/py-pickleshare/APKBUILD @@ -0,0 +1,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" |