diff options
author | Mark Wagie | 2020-04-10 08:58:58 -0600 |
---|---|---|
committer | Mark Wagie | 2020-04-10 08:58:58 -0600 |
commit | 5df94ff7edcc2802634566c8d77a3b99f94ee3d1 (patch) | |
tree | a4f1277c4f6d297f8d4032daf5396457a4dd3813 | |
parent | a3759216e7904203fc98acf176c01ba29f1f56bb (diff) | |
download | aur-5df94ff7edcc2802634566c8d77a3b99f94ee3d1.tar.gz |
update Co-Maintainer, PKGBUILD improvements
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | .gitignore | 10 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 28 insertions, 24 deletions
@@ -1,16 +1,13 @@ pkgbase = python-sphinxcontrib-programoutput - pkgdesc = Sphinx extension to include program output + pkgdesc = Sphinx extension to insert the output of arbitrary commands into documents. pkgver = 0.16 pkgrel = 1 - url = https://pypi.org/project/sphinxcontrib-programoutput/ + url = https://sphinxcontrib-programoutput.readthedocs.io arch = any license = BSD - makedepends = python - depends = python + makedepends = python-setuptools depends = python-sphinx - provides = sphinxcontrib-programoutput - options = !emptydirs - source = https://pypi.python.org/packages/source/s/sphinxcontrib-programoutput/sphinxcontrib-programoutput-0.16.tar.gz + source = https://pypi.org/packages/source/s/sphinxcontrib-programoutput/sphinxcontrib-programoutput-0.16.tar.gz sha256sums = 0caaa216d0ad8d2cfa90a9a9dba76820e376da6e3152be28d10aedc09f82a3b0 pkgname = python-sphinxcontrib-programoutput diff --git a/.gitignore b/.gitignore index a4ac5e846fa1..4dab8d6386e3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ -*.tar.gz -pkg -src +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO @@ -1,27 +1,30 @@ # Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr> +# Co-Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> # Contributor: Josh VanderLinden <arch@cloudlery.com> pkgname=python-sphinxcontrib-programoutput -_pkgname=sphinxcontrib-programoutput +_name=${pkgname#python-} pkgver=0.16 pkgrel=1 -pkgdesc="Sphinx extension to include program output" +pkgdesc="Sphinx extension to insert the output of arbitrary commands into documents." arch=('any') -url="https://pypi.org/project/sphinxcontrib-programoutput/" +url="https://sphinxcontrib-programoutput.readthedocs.io" license=('BSD') -depends=('python' 'python-sphinx') -makedepends=('python') -provides=('sphinxcontrib-programoutput') -options=(!emptydirs) -source=( - "https://pypi.python.org/packages/source/s/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" -) +depends=('python-sphinx') +makedepends=('python-setuptools') +#options=(!emptydirs) +source=("https://pypi.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('0caaa216d0ad8d2cfa90a9a9dba76820e376da6e3152be28d10aedc09f82a3b0') -package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py install --root="${pkgdir}/" --optimize=1 +build() { + cd "$_name-$pkgver" + python setup.py build +} + +package() { + cd "$_name-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" } # vim:set ts=2 sw=2 et: |