aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-enum34/APKBUILD
blob: ca627dbbf04f39245b5d1cb08ea861acb43f3b59 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-enum34
pkgver=1.0.4
pkgrel=0
pkgdesc="Python 3.4 Enum backported"
url="http://pypi.python.org/pypi/enum34"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="https://pypi.python.org/packages/source/e/enum34/enum34-$pkgver.tar.gz"

_builddir="$srcdir"/enum34-$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="ac80f432ac9373e7d162834b264034b6  enum34-1.0.4.tar.gz"
sha256sums="d3c19f26a6a34629c18c775f59dfc5dd595764c722b57a2da56ebfb69b94e447  enum34-1.0.4.tar.gz"
sha512sums="21b91f1d0e15cc909e733473f603077eff7222c90da84b0a5f2db921ba41ac996b9237cc8adf1d07913b7eaf8f8e70ac6955abbb191f2e7cc54966710a1c96a9  enum34-1.0.4.tar.gz"