diff options
-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: |