mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
08a66c4024
new pkg added to fullfill checkdepends new order file python3.order
32 lines
945 B
Bash
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"
|
|
}
|