aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/py-pysqlite/APKBUILD
blob: 73dc24efa2c80bcb4dc2967b1ed77b1f77f4f654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
pkgname=py-pysqlite
_pkgname=pysqlite
pkgver=2.8.3
pkgrel=1
pkgdesc="Python DB-API 2.0 interface for the SQLite"
url="https://pypi.python.org/pypi/pysqlite"
arch="all"
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
}

package() {
	mkdir -p "$pkgdir"
}

_py() {
	local python=$1
	pkgdesc="$pkgdesc - $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"

	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

_py2() {
	_py python2
	replaces="$pkgname"
}

sha512sums="9bf378b47fe020b378a9bd749b2b27cefcf8018fbe715cca54004b36092d2202ed0bb7d8fb8bc9820ce16918e01cea8bd1f032c640d1c461bd99cdf2632b8e3e  pysqlite-2.8.3.tar.gz"