aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-tzlocal/APKBUILD
blob: 66a8aaf21a0c7bfe26f904b8bd01a0fbf97c6828 (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
# Maintainer: Peter Bui <pnutzh4x0r@gmail.com>
pkgname=py-tzlocal
_pkgname=tzlocal
pkgver=1.2
pkgrel=0
pkgdesc="Python tzinfo object for the local timezone"
url="http://pytz.sourceforge.net/"
arch="noarch"
license="CC0 1.0"
depends="python py-tz"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.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="2e36ceb1260bf1233ed2f018a1df536e  tzlocal-1.2.tar.gz"
sha256sums="438f122d684c951b22cb98aecc80fdb961b84e69542bf878c6b9a9419de09a8b  tzlocal-1.2.tar.gz"
sha512sums="eb4d1f73983579e109249884d2a343c441942fb0d4dc76aed693c4a05100b10a2337d72794fdb9c0cd28c3b73e11dbd030bdf6dc2f75e57c958655219973c814  tzlocal-1.2.tar.gz"