aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py-tinycss/APKBUILD
blob: 0ddead5aff09a78c7ae11461dd7a83bd09558fd2 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                         
                 
              
                                       

              
                                                                                        













                                                                        
                                          



                       
                                                                           




                                                                                                                                                                 
# 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="python2"
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"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 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"