aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-rfc3339/APKBUILD
blob: 6bd2e4a06a13945dce148000409a7cb115019447 (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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-rfc3339
pkgver=0.2
pkgrel=0
pkgdesc="Generate and parse RFC 3339 timestamps"
url="https://pypi.python.org/pypi/pyRFC3339"
arch="noarch"
license="MIT"
depends="py-tz"
depends_dev=""
makedepends="$depends_dev py-setuptools"
install=""
subpackages=""
source="https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-$pkgver.tar.gz"

_builddir="$srcdir"/pyRFC3339-$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="5e0f7e40e363812180fffaae52daf2e6  pyRFC3339-0.2.tar.gz"
sha256sums="a504ff6bcb363fa402d393f65fe5f542475e54fbfc55817b80892ba93b22e6de  pyRFC3339-0.2.tar.gz"
sha512sums="54482528e429c0135823b333d18e6a9361ba99b18a62883e9b09f5533e75f08d12d9c1ee855296cecd98c11824f927984527bb0555a49e4284164b7fe4df8c4f  pyRFC3339-0.2.tar.gz"