From 5bb70e15e5fb2e62402825ae6712d9776a3244f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Klitzing?= Date: Mon, 27 Mar 2017 20:47:17 +0200 Subject: testing/py-sortedcontainers: new aport --- testing/py-sortedcontainers/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 testing/py-sortedcontainers/APKBUILD (limited to 'testing/py-sortedcontainers/APKBUILD') diff --git a/testing/py-sortedcontainers/APKBUILD b/testing/py-sortedcontainers/APKBUILD new file mode 100644 index 0000000000..9cc312378a --- /dev/null +++ b/testing/py-sortedcontainers/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: André Klitzing +# Maintainer: André Klitzing +pkgname=py-sortedcontainers +_pkgname=sortedcontainers +pkgver=1.5.7 +pkgrel=0 +pkgdesc="Python Sorted Container Types: SortedList, SortedDict, and SortedSet" +url="http://www.grantjenks.com/docs/sortedcontainers/" +arch="noarch" +license="Apache" +makedepends="python2-dev py-setuptools python3-dev" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +options="!check" +source="$_pkgname-$pkgver.tar.gz::https://github.com/grantjenks/sorted_containers/archive/v$pkgver.tar.gz" +builddir="$srcdir/sorted_containers-$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 (for $python)" + depends="$python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +sha512sums="9b6aef9c95c5543e06e7ee8bd89f86de7ce8f5b518663256113fdbbbd5a9f800c2e9f0ad993acc497f78ae665dd8473369912b3780df565403aee1c519b72814 sortedcontainers-1.5.7.tar.gz" -- cgit v1.2.3