diff options
author | Britney Fransen <brfransen@gmail.com> | 2018-03-23 20:11:23 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2018-03-23 20:11:23 (GMT) |
commit | 3b60286025500bb8e6f51256f0acd92a7412297b (patch) | |
tree | 3d3626ff7ff60a5abd99df06a8f9efc0ad995272 /abs/core/python_modules | |
parent | 91ca4ac18476b4089f521314a14c25b47cf0e695 (diff) | |
download | linhes_pkgbuild-3b60286025500bb8e6f51256f0acd92a7412297b.zip linhes_pkgbuild-3b60286025500bb8e6f51256f0acd92a7412297b.tar.gz linhes_pkgbuild-3b60286025500bb8e6f51256f0acd92a7412297b.tar.bz2 |
python-mistune: dep of m2r
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r-- | abs/core/python_modules/python-mistune/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-mistune/PKGBUILD b/abs/core/python_modules/python-mistune/PKGBUILD new file mode 100644 index 0000000..dc1f2cc --- /dev/null +++ b/abs/core/python_modules/python-mistune/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: Kyle Keen <keenerd@gmail.com> +# Contributor: shmilee + +pkgbase=python-mistune +_pkgname=mistune +pkgname=('python-mistune' 'python2-mistune') +pkgver=0.8.1 +pkgrel=1 +pkgdesc="The fastest markdown parser in pure Python with renderer feature." +arch=('any') +url="https://github.com/lepture/mistune" +license=('BSD') +depends=('python') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://github.com/lepture/mistune/archive/v${pkgver}.tar.gz") +md5sums=('48de519df46992d12b45d562ee5bfedb') + +prepare() { + cd "$srcdir" + cp -r "$srcdir/$_pkgname-$pkgver" "$srcdir/${_pkgname}2-$pkgver" +} + +package_python-mistune() { + cd "$srcdir/${_pkgname}-$pkgver" + python setup.py install --root="$pkgdir/" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python-mistune/LICENSE" +} + +package_python2-mistune() { + depends=('python2') + cd "$srcdir/${_pkgname}2-$pkgver" + python2 setup.py install --root="$pkgdir/" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-mistune/LICENSE" +} + +# vim:set ts=2 sw=2 et: |