diff options
author | George Rawlinson | 2020-07-09 09:43:36 +1200 |
---|---|---|
committer | George Rawlinson | 2020-07-09 09:43:36 +1200 |
commit | 4f288fbd3af3fdfc55f3375e21bca7f66f38c885 (patch) | |
tree | 219b0953c3cd26b367c82e0bd7a2b90a34427449 | |
download | aur-4f288fbd3af3fdfc55f3375e21bca7f66f38c885.tar.gz |
addpkg: python-xdoctest 0.12.0-1
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5cbea5105599 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-xdoctest + pkgdesc = rewrite of doctest module (with pytest integration) + pkgver = 0.12.0 + pkgrel = 1 + url = https://github.com/Erotemic/xdoctest + arch = any + license = MIT + makedepends = python-setuptools + depends = python + source = python-xdoctest-0.12.0.tar.gz::https://github.com/Erotemic/xdoctest/archive/0.12.0.tar.gz + b2sums = 0792fee90dccaf9b8dfba147d82d5798c22b70262ac8fcf068fd1a28358c0f1a76936b3636521cde22b44788b10efb9c993706010efc38f0c4aa3eff5fc0f707 + +pkgname = python-xdoctest + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..124f7cc36692 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: George Rawlinson <george@rawlinson.net.nz> + +pkgname=python-xdoctest +_pkgname="${pkgname#python-}" +_name="${_pkgname/-/_}" +pkgver=0.12.0 +pkgrel=1 +pkgdesc="rewrite of doctest module (with pytest integration)" +arch=('any') +url="https://github.com/Erotemic/xdoctest" +license=('MIT') +depends=('python') +makedepends=('python-setuptools') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +b2sums=('0792fee90dccaf9b8dfba147d82d5798c22b70262ac8fcf068fd1a28358c0f1a76936b3636521cde22b44788b10efb9c993706010efc38f0c4aa3eff5fc0f707') + +build() { + cd "$_pkgname-$pkgver" + python setup.py build +} + +package() { + cd "$_pkgname-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE +} |