summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-mistune/PKGBUILD
blob: dc1f2cc81aaf47217d3968313be5713ded4ff5d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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: