From 3b60286025500bb8e6f51256f0acd92a7412297b Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Fri, 23 Mar 2018 20:11:23 +0000 Subject: python-mistune: dep of m2r --- abs/core/python_modules/python-mistune/PKGBUILD | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 abs/core/python_modules/python-mistune/PKGBUILD 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 +# 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: -- cgit v0.12