Date: Wednesday, April 18, 2018 @ 13:36:15
  Author: zorun
Revision: 316876

python-sphinxcontrib-bibtex: import from AUR

Added:
  python-sphinxcontrib-bibtex/
  python-sphinxcontrib-bibtex/trunk/
  python-sphinxcontrib-bibtex/trunk/PKGBUILD

----------+
 PKGBUILD |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

Added: python-sphinxcontrib-bibtex/trunk/PKGBUILD
===================================================================
--- python-sphinxcontrib-bibtex/trunk/PKGBUILD                          (rev 0)
+++ python-sphinxcontrib-bibtex/trunk/PKGBUILD  2018-04-18 13:36:15 UTC (rev 
316876)
@@ -0,0 +1,54 @@
+# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+# Contributor: Patrice Peterson <runiq at archlinux dot us>
+
+pkgbase=python-sphinxcontrib-bibtex
+pkgname=(python-sphinxcontrib-bibtex python2-sphinxcontrib-bibtex)
+pkgver=0.3.6
+pkgrel=1
+pkgdesc="A Sphinx extension for BibTeX style citations"
+arch=('any')
+url="http://sphinxcontrib-bibtex.readthedocs.org";
+license=('BSD')
+depends=('python-six' 'python-sphinx' 'python-pybtex' 'python-pybtex-docutils' 
'python-oset'
+         'python2-six' 'python2-sphinx' 'python2-pybtex' 
'python2-pybtex-docutils' 'python2-oset')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python-sphinx-testing'
+              'python2-nose' 'python2-sphinx-testing')
+source=("https://pypi.io/packages/source/s/sphinxcontrib-bibtex/sphinxcontrib-bibtex-$pkgver.tar.gz";)
+sha256sums=('ec4ec071d8c81d2165c55736bfd917352ef59247d2098339fed9e0aecc1cd4d5')
+
+prepare() {
+  cp -a sphinxcontrib-bibtex-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/sphinxcontrib-bibtex-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/sphinxcontrib-bibtex-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/sphinxcontrib-bibtex-$pkgver"
+  python setup.py nosetests || warning "Some python3 tests failed"
+
+  cd "$srcdir/sphinxcontrib-bibtex-$pkgver-py2"
+  python2 setup.py nosetests || warning "Some python2 tests failed"
+}
+
+package_python-sphinxcontrib-bibtex() {
+  depends=('python-six' 'python-sphinx' 'python-pybtex' 
'python-pybtex-docutils' 'python-oset')
+
+  cd "$srcdir/sphinxcontrib-bibtex-$pkgver"
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-sphinxcontrib-bibtex() {
+  depends=('python2-six' 'python2-sphinx' 'python2-pybtex' 
'python2-pybtex-docutils' 'python2-oset')
+
+  cd "$srcdir/sphinxcontrib-bibtex-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Reply via email to