aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-markdown/APKBUILD
blob: 71d42cb466909140619b14c55c3a8e1689cd9c14 (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
38
39
40
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-markdown
_pkgname=Markdown
pkgver=2.6.4
pkgrel=0
pkgdesc="A Python implementation of Markdown"
url="http://pythonhosted.org/Markdown/"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="4e8b4d22af82e0d92811938fb283be90  Markdown-2.6.4.tar.gz"
sha256sums="e436eee7aaf2a230ca3315034dd39e8a0fc27036708acaa3dd70625ec62a94ce  Markdown-2.6.4.tar.gz"
sha512sums="5fc4ada494880871833046ef9a115385542002e6ec104847353fb2638fce6e46f2bb54ff37bd7d43eb100a448dc424ac425937cadc9ec1d81ea9e70887d8e460  Markdown-2.6.4.tar.gz"