aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-tinycss/APKBUILD
blob: cf3112381b3495a3938afe37311b4fbc46320448 (plain) (blame)
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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-tinycss
pkgver=0.3
pkgrel=0
pkgdesc="tiny CSS parser for python"
url="http://pythonhosted.org/tinycss"
arch="all"
license="BSD"
depends="python"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/t/tinycss/tinycss-$pkgver.tar.gz"

_builddir="$srcdir"/tinycss-$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="13999e54453d4fbc9d1539f4b95d235e  tinycss-0.3.tar.gz"
sha256sums="a4adabd1c417080372c789220f7f9985995e74f2fb612848306872a232862cde  tinycss-0.3.tar.gz"
sha512sums="1fdf29777ee7b3ef39cf2169d8f464a7e5aea850de8a7976acf3ed9e73e831ea0d7ee52b4c8c9979b2263509cbffe1bde85cf6da178ddeaac9009ace7a2b4441  tinycss-0.3.tar.gz"