[arch-commits] Commit in python-latexcodec (3 files)
Baptiste Jonglez
zorun at archlinux.org
Tue Apr 17 20:48:15 UTC 2018
Date: Tuesday, April 17, 2018 @ 20:48:14
Author: zorun
Revision: 316789
archrelease: copy trunk to community-any
Added:
python-latexcodec/repos/
python-latexcodec/repos/community-any/
python-latexcodec/repos/community-any/PKGBUILD
(from rev 316788, python-latexcodec/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-latexcodec/repos/community-any/PKGBUILD (from rev 316788, python-latexcodec/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD (rev 0)
+++ repos/community-any/PKGBUILD 2018-04-17 20:48:14 UTC (rev 316789)
@@ -0,0 +1,51 @@
+# Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
+# Contributor: Patrice Peterson <runiq at archlinux dot us>
+
+pkgbase=python-latexcodec
+pkgname=(python-latexcodec python2-latexcodec)
+pkgver=1.0.5
+pkgrel=1
+pkgdesc="A lexer and codec to work with LaTeX code in Python"
+arch=('any')
+url="https://github.com/mcmtroffaes/latexcodec"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=("https://pypi.io/packages/source/l/latexcodec/latexcodec-$pkgver.tar.gz")
+sha256sums=('9607d9d260654eb607c54a8b8c991e4406008605c383ded4f4034522dc0bad7d')
+
+prepare() {
+ cp -a latexcodec-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/latexcodec-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/latexcodec-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/latexcodec-$pkgver"
+ nosetests
+
+ cd "$srcdir/latexcodec-$pkgver-py2"
+ nosetests2
+}
+
+package_python-latexcodec() {
+ depends=('python-six')
+
+ cd "$srcdir/latexcodec-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-latexcodec() {
+ depends=('python2-six')
+
+ cd "$srcdir/latexcodec-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list