summaryrefslogtreecommitdiff
path: root/python-sphinxcontrib-programoutput
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-07-09 14:13:26 +0200
committerErich Eckner <git@eckner.net>2018-07-09 14:13:26 +0200
commit0bc02b2237c5be15bfb4980bbcfaf141456032b5 (patch)
treeff020aaf37c9a3da776fe516b614a17b07a2f45c /python-sphinxcontrib-programoutput
parent2ff36e551d70b147443c647e4b4312f128abee98 (diff)
downloadarchlinuxewe.git.save-0bc02b2237c5be15bfb4980bbcfaf141456032b5.tar.xz
python-sphinxcontrib-programoutput neu
Diffstat (limited to 'python-sphinxcontrib-programoutput')
-rw-r--r--python-sphinxcontrib-programoutput/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/python-sphinxcontrib-programoutput/PKGBUILD b/python-sphinxcontrib-programoutput/PKGBUILD
new file mode 100644
index 00000000..92ffe8c8
--- /dev/null
+++ b/python-sphinxcontrib-programoutput/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr>
+# Contributor: Josh VanderLinden <arch@cloudlery.com>
+pkgbase=python-sphinxcontrib-programoutput
+pkgname=(python2-sphinxcontrib-programoutput python-sphinxcontrib-programoutput)
+_pkgname=sphinxcontrib-programoutput
+pkgver=0.11
+pkgrel=1
+pkgdesc="Sphinx extension to include program output"
+arch=('any')
+url="https://bitbucket.org/birkenfeld/sphinx-contrib"
+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"
+)
+source=(https://pypi.python.org/packages/25/34/fd1b61d3fe9ea705dff169d55426bf23d8be0f7b1976d17e79fbcc16e7d9/${_pkgname}-${pkgver}.tar.gz)
+sha256sums=('cbec3ee1c3abd09e105115ab69cb5ade8ca1be9811565a844f973e93e0314837')
+
+prepare() {
+ cp -r "${srcdir}/${_pkgname}-${pkgver}" "${srcdir}/py2-${_pkgname}-${pkgver}"
+ mv "${srcdir}/${_pkgname}-${pkgver}" "${srcdir}/py-${_pkgname}-${pkgver}"
+}
+
+build() {
+ cd "${srcdir}/py2-${_pkgname}-${pkgver}"
+ python2 setup.py build
+
+ cd "${srcdir}/py-${_pkgname}-${pkgver}"
+ python setup.py build
+}
+
+package_python2-sphinxcontrib-programoutput() {
+ cd "${srcdir}/py2-${_pkgname}-${pkgver}"
+
+ python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python-sphinxcontrib-programoutput() {
+ cd "${srcdir}/py-${_pkgname}-${pkgver}"
+
+ python setup.py install --root="${pkgdir}/" --optimize=1
+
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}