desktop/python-mistune/PKGBUILD
AlmAck 08a66c4024 python3 rebuild for 3.5
new pkg added to fullfill checkdepends
new order file python3.order
2016-03-16 22:36:13 +01:00

32 lines
945 B
Bash

pkgbase=python-mistune
_pkgname=mistune
pkgname=('python3-mistune' 'python2-mistune')
pkgver=0.7.2
pkgrel=1
pkgdesc="The fastest markdown parser in pure Python with renderer feature."
arch=('any')
url="https://github.com/lepture/mistune"
license=('BSD')
depends=('python3')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("https://github.com/lepture/mistune/archive/v${pkgver}.tar.gz")
md5sums=('798a72534237c25e6349d24652d0a6bc')
prepare() {
cd "$srcdir"
cp -r "$srcdir/$_pkgname-$pkgver" "$srcdir/${_pkgname}2-$pkgver"
}
package_python3-mistune() {
cd "$srcdir/${_pkgname}-$pkgver"
python3 setup.py install --root="$pkgdir/"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python3-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"
}