summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 642417994019ac4e25167799272a8845f79f597b (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
40
41
42
43
44
45
46
47
# Maintainer: Yuuta Liang <yuuta@yuuta.moe>
pkgname=python-contextvars
pkgver=2.4
pkgrel=1
epoch=
pkgdesc="PEP 567 Backport"
arch=(any)
url="https://github.com/MagicStack/contextvars"
license=('custom')
groups=()
depends=('python')
makedepends=('python-setuptools')
checkdepends=('python-immutables')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
_name=${pkgname#python-}
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
md5sums=('5907c5c866d9ac75563c90b0b7953b04')
validpgpkeys=()

prepare() {
	cd "$_name-$pkgver"
}

build() {
	cd "$_name-$pkgver"
	python setup.py build
}

check() {
	cd "$_name-$pkgver"
	python setup.py test
}

package() {
	cd "$_name-$pkgver"
	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
	mkdir -p $pkgdir/usr/share/licenses/${pkgname}/
	install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/
}