[arch-commits] Commit in python-pypandoc/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 25 04:56:56 UTC 2016
Date: Sunday, December 25, 2016 @ 04:56:55
Author: felixonmars
Revision: 201830
archrelease: copy trunk to community-staging-any
Added:
python-pypandoc/repos/community-staging-any/
python-pypandoc/repos/community-staging-any/PKGBUILD
(from rev 201829, python-pypandoc/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-pypandoc/repos/community-staging-any/PKGBUILD (from rev 201829, python-pypandoc/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 04:56:55 UTC (rev 201830)
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 141139 2015-09-20 03:14:59Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pypandoc
+pkgname=('python-pypandoc' 'python2-pypandoc')
+pkgver=1.3.3
+pkgrel=2
+pkgdesc="Thin wrapper for pandoc"
+arch=('any')
+license=('MIT')
+url="https://github.com/bebraw/pypandoc"
+makedepends=('python-setuptools' 'python2-setuptools' 'pandoc' 'git')
+checkdepends=('texlive-core' 'pandoc-citeproc')
+source=("git+https://github.com/bebraw/pypandoc.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ # We don't really need pip and wheel at runtime
+ sed -i "s/install_requires = .*/install_requires = ['setuptools'],/" pypandoc/setup.py
+
+ cp -a pypandoc{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pypandoc
+ python setup.py build
+
+ cd "$srcdir"/pypandoc-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pypandoc
+ LC_CTYPE=en_US.UTF-8 python setup.py test
+
+ cd "$srcdir"/pypandoc-py2
+ python2 setup.py test
+}
+
+package_python-pypandoc() {
+ depends=('python-setuptools' 'pandoc')
+
+ cd pypandoc
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pypandoc() {
+ depends=('python2-setuptools' 'pandoc')
+
+ cd pypandoc-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list