summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--.gitignore10
-rw-r--r--PKGBUILD31
3 files changed, 28 insertions, 24 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 67e547cfcec..cca19907ff0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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 a4ac5e846fa..4dab8d6386e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,7 @@
-*.tar.gz
-pkg
-src
+# Ignore everything
+*
+
+# But not these files...
+!.gitignore
+!PKGBUILD
+!.SRCINFO
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: