mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py-blist: new aport
https://github.com/DanielStutzbach/blist A list-like type with better asymptotic performance and similar performance on small lists.#
This commit is contained in:
parent
e5acd53930
commit
586c5dada6
52
testing/py-blist/APKBUILD
Normal file
52
testing/py-blist/APKBUILD
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
# Contributor: Sebastian Hugentobler <sebastian@vanwa.ch>
|
||||||
|
# Maintainer: Sebastian Hugentobler <sebastian@vanwa.ch>
|
||||||
|
pkgname=py-blist
|
||||||
|
_pkgname=${pkgname/py-/}
|
||||||
|
pkgver=1.3.6
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="A list-like type with better asymptotic performance and similar performance on small lists"
|
||||||
|
url="https://github.com/DanielStutzbach/blist"
|
||||||
|
arch="all"
|
||||||
|
license="BSD-3-Clause"
|
||||||
|
makedepends="python2-dev python3-dev py-setuptools"
|
||||||
|
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
|
||||||
|
source="$pkgname-$pkgver.tar.gz::https://github.com/DanielStutzbach/$_pkgname/archive/v$pkgver.tar.gz"
|
||||||
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
python2 setup.py check
|
||||||
|
python3 setup.py check
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$builddir"
|
||||||
|
python2 setup.py build
|
||||||
|
python3 setup.py build
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
mkdir -p "$pkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
_py() {
|
||||||
|
local python=$1
|
||||||
|
pkgdesc="$pkgdesc - $python"
|
||||||
|
depends="$depends $python"
|
||||||
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
||||||
|
cd "$builddir"
|
||||||
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
_py2() {
|
||||||
|
replaces="$pkgname"
|
||||||
|
depends="${depends//py-/py2-}"
|
||||||
|
_py python2
|
||||||
|
}
|
||||||
|
|
||||||
|
_py3() {
|
||||||
|
depends="${depends//py-/py3-}"
|
||||||
|
_py python3
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="f46ded57aeb2a33fc5450420210d015aa37c2fc91034a771dfb1a184ef2655d8e5dc97bee61139059e6211569fcb7358f972071d3830733e9dbb8908e1b0e14c py-blist-1.3.6.tar.gz"
|
Loading…
Reference in New Issue
Block a user