[arch-commits] Commit in python-pybtex/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:11:05 UTC 2019
Date: Saturday, October 26, 2019 @ 04:11:05
Author: felixonmars
Revision: 519924
archrelease: copy trunk to community-staging-any
Added:
python-pybtex/repos/community-staging-any/
python-pybtex/repos/community-staging-any/PKGBUILD
(from rev 519922, python-pybtex/trunk/PKGBUILD)
----------+
PKGBUILD | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
Copied: python-pybtex/repos/community-staging-any/PKGBUILD (from rev 519922, python-pybtex/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:11:05 UTC (rev 519924)
@@ -0,0 +1,62 @@
+# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+# Contributor: Immae
+
+pkgbase=python-pybtex
+pkgname=(python-pybtex python2-pybtex)
+pkgver=0.22.2
+pkgrel=2
+pkgdesc="A BibTeX-compatible bibliography processor written in Python"
+arch=("any")
+url="https://pybtex.org"
+license=("GPL")
+# Overridden in package_* functions
+depends=('python' 'python-setuptools' 'python-six' 'python-yaml' 'python-latexcodec'
+ 'python2' 'python2-setuptools' 'python2-six' 'python2-yaml' 'python2-latexcodec')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.io/packages/source/p/pybtex/pybtex-$pkgver.tar.gz")
+sha256sums=('00816e5f8570609d8ce3360cd23916bd3e50428a3508127578fdb4dc2b731c1c')
+
+prepare() {
+ cp -a pybtex-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/pybtex-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/pybtex-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/pybtex-$pkgver"
+ python setup.py nosetests
+
+ cd "$srcdir/pybtex-$pkgver-py2"
+ python2 setup.py nosetests
+}
+
+package_python-pybtex() {
+ depends=('python' 'python-setuptools' 'python-six' 'python-yaml' 'python-latexcodec')
+
+ cd "$srcdir/pybtex-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # Files under site-packages/tests/ conflict with other python packages.
+ rm -rf "$pkgdir"/usr/lib/python3.?/site-packages/tests/
+}
+
+package_python2-pybtex() {
+ depends=('python2' 'python2-setuptools' 'python2-six' 'python2-yaml' 'python2-latexcodec')
+
+ cd "$srcdir/pybtex-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ # Files under site-packages/tests/ conflict with other python packages.
+ rm -rf "$pkgdir"/usr/lib/python2.?/site-packages/tests/
+
+ # Rename executables to avoid file conflict with python-pybtex
+ mv "$pkgdir"/usr/bin/pybtex{,2}
+ mv "$pkgdir"/usr/bin/pybtex-format{,2}
+ mv "$pkgdir"/usr/bin/pybtex-convert{,2}
+}
More information about the arch-commits
mailing list