summaryrefslogtreecommitdiffstats
path: root/testing/py-acl/APKBUILD
blob: 9fef2e632cf3984d9ad33552ed8e5fdc5552d71d (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-acl
_pkgname=acl
pkgver=0.3
pkgrel=0
pkgdesc="A python network access control list parsing library"
url="https://github.com/jathanism/acl"
arch="noarch"
license="Apache2"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="$_pkgname-$pkgver.tar.gz::https://github.com/jathanism/acl/archive/$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="211599e441c42feebc4c72ccbefeee2d  acl-0.3.tar.gz"
sha256sums="7680a56830beb5d5b1d57f14aade78ad9823029cb4120caa5e51167119448a7b  acl-0.3.tar.gz"
sha512sums="fcabae34dc55d47c17d9c3c52932e9693605ff9a4ab22be30e18d180946d37d7cbe0b5bd2727550d5535e23e1813f1912905cbed652ed2041b45a5663dd44f7d  acl-0.3.tar.gz"