summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMark Wagie2020-04-10 08:58:58 -0600
committerMark Wagie2020-04-10 08:58:58 -0600
commit5df94ff7edcc2802634566c8d77a3b99f94ee3d1 (patch)
treea4f1277c4f6d297f8d4032daf5396457a4dd3813 /PKGBUILD
parenta3759216e7904203fc98acf176c01ba29f1f56bb (diff)
downloadaur-5df94ff7edcc2802634566c8d77a3b99f94ee3d1.tar.gz
update Co-Maintainer, PKGBUILD improvements
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 17 insertions, 14 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 881e50ec19b..9147c5974e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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: