diff options
| author | Mark Weiman <mark.weiman@markzz.com> | 2016-01-02 01:22:31 -0500 |
|---|---|---|
| committer | Mark Weiman <mark.weiman@markzz.com> | 2016-01-02 01:22:31 -0500 |
| commit | 5c3b7276abf0d01b53662f38db5b4d52377343ed (patch) | |
| tree | 8286ac3539ed49a2a1e9a65f8b7fca0976a06de6 /python-latex/PKGBUILD | |
| download | markzz-5c3b7276abf0d01b53662f38db5b4d52377343ed.tar.gz markzz-5c3b7276abf0d01b53662f38db5b4d52377343ed.zip | |
initial commit
Signed-off-by: Mark Weiman <mark.weiman@markzz.com>
Diffstat (limited to 'python-latex/PKGBUILD')
| -rw-r--r-- | python-latex/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/python-latex/PKGBUILD b/python-latex/PKGBUILD new file mode 100644 index 0000000..8381565 --- /dev/null +++ b/python-latex/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Mark Weiman <mark dot weriman at markzz dot com> + +pkgbase=python-latex +pkgname=('python-latex' 'python2-latex') +pkgver=0.6.1 +pkgrel=1 +pkgdesc="Python wrappers for calling LaTeX/building LaTeX documents" +arch=('any') +license=('MIT') +url="https://pypi.python.org/pypi/latex/${pkgver}" +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') +source=("latex-$pkgver.tar.gz::https://github.com/mbr/latex/archive/0.6.1.tar.gz") +md5sums=('b6748b7c06e400a0fef3aee1f46013f4') + +prepare() { + cp -a "$srcdir/latex-$pkgver" "$srcdir/latex-$pkgver-python2" + + find "$srcdir/latex-$pkgver-python2" -name '*.py' | \ + xargs sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" +} + +build() { + cd "$srcdir/latex-$pkgver" + python setup.py build + + cd "$srcdir/latex-$pkgver-python2" + python2 setup.py build +} + +package_python-latex() { + depends=('python' 'python-setuptools' 'python-data' + 'python-tempdir' 'python-future' 'python-shutilwhich' + 'python-six') + cd "$srcdir/latex-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-latex() { + depends=('python2' 'python2-setuptools' 'python2-data' + 'python2-tempdir' 'python2-future' 'python2-shutilwhich' + 'python2-six') + cd "$srcdir/latex-$pkgver-python2" + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + |
