~dricottone/huttese-apk

ref: 68e2b4a1d299bc5e3e788416a2ec0fe1f3e1225f huttese-apk/sr.ht/py-asyncpg/APKBUILD -rw-r--r-- 1.0 KiB
68e2b4a1 — Drew DeVault Actually fix old package removal 5 years ago
                                                                                
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
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py-asyncpg
_pkgname=asyncpg
pkgver=0.18.2
pkgrel=0
pkgdesc="An asyncio PostgreSQL driver"
url="https://github.com/MagicStack/asyncpg"
arch="all"
license="Apache-2.0"
subpackages="py3-${pkgname#py-}:_py3"
makedepends="python3-dev py-setuptools cython cython-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # requires crazy postgres shit

build() {
	cd "$builddir"
	python3 setup.py build
}

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

_py3() {
	cd "$builddir"
	_py python3
}

_py() {
	local python="$1"
	pkgdesc="$pkgdesc (for $python)"
	depends="$python"
	install_if="$pkgname=$pkgver-r$pkgrel $python"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

sha512sums="58c2b2c8147743dad756278cb6e808711b4710d2859cea73c040b7864981bb36e20d096022f3e690f62bdf70f28f54c8856b5195809234097575af2061f39d8f  asyncpg-0.18.2.tar.gz"