[arch-commits] Commit in python-latexcodec/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 15:57:15 UTC 2019
Date: Friday, October 25, 2019 @ 15:57:14
Author: foutrelis
Revision: 519292
archrelease: copy trunk to community-staging-any
Added:
python-latexcodec/repos/community-staging-any/
python-latexcodec/repos/community-staging-any/PKGBUILD
(from rev 519291, python-latexcodec/trunk/PKGBUILD)
----------+
PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
Copied: python-latexcodec/repos/community-staging-any/PKGBUILD (from rev 519291, python-latexcodec/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:57:14 UTC (rev 519292)
@@ -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=3
+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