From 0bc02b2237c5be15bfb4980bbcfaf141456032b5 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 9 Jul 2018 14:13:26 +0200 Subject: python-sphinxcontrib-programoutput neu --- python-sphinxcontrib-programoutput/PKGBUILD | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 python-sphinxcontrib-programoutput/PKGBUILD (limited to 'python-sphinxcontrib-programoutput') 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 +# Contributor: Hyacinthe Cartiaux +# Contributor: Josh VanderLinden +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 +} -- cgit v1.2.3-54-g00ecf