diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-17 12:51:29 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-17 13:06:20 +0000 |
commit | ca9a57bfe41f5c919da55c6adabbd9b96e769050 (patch) | |
tree | f6015839ad1a045dc34230ee4dd4795b45221b87 /main/py-idna/APKBUILD | |
parent | c4c977f3ea4d5c1fe0caaa0e9dfe1bc7de06dccc (diff) | |
download | aports-ca9a57bfe41f5c919da55c6adabbd9b96e769050.tar.bz2 aports-ca9a57bfe41f5c919da55c6adabbd9b96e769050.tar.xz |
main/py-idna: moved from community, added py2 and py3 subpackages. Added maintainer
Diffstat (limited to 'main/py-idna/APKBUILD')
-rw-r--r-- | main/py-idna/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/main/py-idna/APKBUILD b/main/py-idna/APKBUILD new file mode 100644 index 0000000000..ee87d0ae13 --- /dev/null +++ b/main/py-idna/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py-idna +pkgver=2.1 +pkgrel=1 +pkgdesc="IDNA 2008 and UTS #46 for Python" +url="https://github.com/kjd/idna" +arch="noarch" +license="BSD" +depends="" +makedepends="python2-dev python3-dev py-setuptools" +install="" +subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +source="idna-$pkgver.tar.gz::https://github.com/kjd/idna/archive/v$pkgver.tar.gz" + +builddir="$srcdir"/idna-$pkgver + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python=$1 + pkgdesc="$pkgdesc - $python" + arch="all" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + _py python2 + replaces="$pkgname" +} + +_py3() { + _py python3 +} + + +md5sums="df0a50db62bcfcddbef2b5c9d5cd2343 idna-2.1.tar.gz" +sha256sums="25a3dadf365b8cc2c2c262170c5de67c9195f3270cdb47a0ae459b4ebad11914 idna-2.1.tar.gz" +sha512sums="92ddaccd57f8d9cf7b57d7880f8ea3890a32a21369ba56dc713da7235983676698ef2019d6b85381ebc7291088e76c8e33f9697cbeaa7b67edef9115dfcf2189 idna-2.1.tar.gz" |