diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-05-17 18:47:19 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-05-17 18:47:19 -0500 |
commit | b169c1a1fa2f81f0ff232f805d718fbaf3506cf8 (patch) | |
tree | 8eb89fe959a6cfc0a6e165348a6873e7c9ad7e61 /user/py3-random2/APKBUILD | |
parent | 76eb3d6b457e6b9c431eba9a25d7656f71454e6e (diff) | |
download | packages-b169c1a1fa2f81f0ff232f805d718fbaf3506cf8.tar.gz packages-b169c1a1fa2f81f0ff232f805d718fbaf3506cf8.tar.bz2 packages-b169c1a1fa2f81f0ff232f805d718fbaf3506cf8.tar.xz packages-b169c1a1fa2f81f0ff232f805d718fbaf3506cf8.zip |
user/py3-random2: new package
Diffstat (limited to 'user/py3-random2/APKBUILD')
-rw-r--r-- | user/py3-random2/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/user/py3-random2/APKBUILD b/user/py3-random2/APKBUILD new file mode 100644 index 000000000..631fd4d26 --- /dev/null +++ b/user/py3-random2/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=py3-random2 +_pkgname=random2 +pkgver=1.0.1 +pkgrel=0 +pkgdesc="A Python module implementing Python 2's RNG" +url="https://pypi.python.org/pypi/random2" +arch="noarch" +license="Python-2.0" +depends="python3" +makedepends="py3-setuptools python3-dev" +install="" +source="$pkgname-$pkgver.zip::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + PYTHONPATH="build/lib" python3 setup.py test +} + +package() { + cd "$builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="31de31c27bc6e07e99c24d30e97d9ddc3085fe557bcb0725881d4ab0b4c06e6208f64ba6267098c7b1be4f115ad45b399e841beecc90f71da2fb7d82982e75ff py3-random2-1.0.1.zip" |