diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 47 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e31ad533229a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python-contextvars + pkgdesc = PEP 567 Backport + pkgver = 2.4 + pkgrel = 1 + url = https://github.com/MagicStack/contextvars + arch = any + license = custom + checkdepends = python-immutables + makedepends = python-setuptools + depends = python + source = https://files.pythonhosted.org/packages/source/c/contextvars/contextvars-2.4.tar.gz + md5sums = 5907c5c866d9ac75563c90b0b7953b04 + +pkgname = python-contextvars + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3c52670f2ca2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.zst +*.tar.gz +*.log +src/ +pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..642417994019 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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}/ +} |