diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-24 12:10:14 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-24 12:27:34 +0000 |
commit | 537cba6faae5e71f27ace230e2fda7d447b69112 (patch) | |
tree | 163e3fcfe6d45d3db2d73aad93c4e7c88fda0664 /community/py-pysqlite | |
parent | 5abb363541d4e0d9e57af29f220cb5ac4a62b5b2 (diff) | |
download | aports-537cba6faae5e71f27ace230e2fda7d447b69112.tar.bz2 aports-537cba6faae5e71f27ace230e2fda7d447b69112.tar.xz |
community/py-pysqlite: upgrade to 2.8.2, created py2 subpackage
Diffstat (limited to 'community/py-pysqlite')
-rw-r--r-- | community/py-pysqlite/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/community/py-pysqlite/APKBUILD b/community/py-pysqlite/APKBUILD new file mode 100644 index 0000000000..8d3693b028 --- /dev/null +++ b/community/py-pysqlite/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> + +pkgname=py-pysqlite +_pkgname=pysqlite +pkgver=2.8.2 +pkgrel=0 +pkgdesc="Python DB-API 2.0 interface for the SQLite" +url="https://pypi.python.org/pypi/pysqlite" +arch="noarch" +license="MIT" +subpackages="py2-${pkgname/py-/}:_py2" +makedepends="python2-dev py-setuptools sqlite-dev" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +builddir="$srcdir"/$_pkgname-$pkgver + + +build() { + cd "$builddir" + python2 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" +} + +md5sums="b8488f6a353bd6a3cd85d327d326376a pysqlite-2.8.2.tar.gz" +sha256sums="613d139e97ce0561dee312e29f3be4751d01fd1a085aa448dd53a003810e0008 pysqlite-2.8.2.tar.gz" +sha512sums="7b462d15fa088195da34da4b3a15342ab8a43bdb4628a69c7c6f1804ac01954042c101450270e2968150df9207aa66f7c6a4e852ae03fc676e9ebd651f82f331 pysqlite-2.8.2.tar.gz" |