mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/py-pickleshare: new aport
dependency for ipython
This commit is contained in:
parent
ac0b1448c6
commit
d33a469e6b
48
testing/py-pickleshare/APKBUILD
Normal file
48
testing/py-pickleshare/APKBUILD
Normal file
@ -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"
|
||||
Loading…
x
Reference in New Issue
Block a user