aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-rfc3339/APKBUILD
blob: 39af7f2c28c0af39c719fca0c6a390b9892181aa (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=1.0
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://files.pythonhosted.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="0f7edd7ffd756a582eeef9282fecb60d  pyRFC3339-1.0.tar.gz"
sha256sums="8dfbc6c458b8daba1c0f3620a8c78008b323a268b27b7359e92a4ae41325f535  pyRFC3339-1.0.tar.gz"
sha512sums="abcfcfcf516ab60214dc11de618d37415da2177387f51f85da99ef18b8cc0d37ed55f0ea6ba3e61292ce5a319838f322e01c1c9f3c0c4edb8341b4b135e575e3  pyRFC3339-1.0.tar.gz"