summaryrefslogtreecommitdiffstats
path: root/main/py-webassets/APKBUILD
blob: 9c11dea044ce0300f83a4c5edfbdc19a84c8dfee (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
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=py-webassets
_pkgname=${pkgname#py-}
pkgver=0.9
pkgrel=0
pkgdesc="Asset management for web development"
url="https://pypi.python.org/pypi/webassets"
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="e9fb6a746c1166dda48d5c2cfc8bc1b5  webassets-0.9.tar.gz"
sha256sums="11d70a7c62a3e23360b899ae9be0bf3437427da6d3ab49600ff09aff60d7c490  webassets-0.9.tar.gz"
sha512sums="9e9b33d81bb2baaf3b5ce3f0907347a21b310a5a21fa4626b8637ee027f0a37b19a5914874b0f3c90a5504b934f30022b60fb82cd7ea114c9a8ffe7f4f3731b4  webassets-0.9.tar.gz"