aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-parsedatetime/APKBUILD
blob: 7f970c59ee853db661bc12065255dcf020eceb31 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py-parsedatetime
_pkgname=parsedatetime
pkgver=2.4
pkgrel=2
pkgdesc="Parse human-readable date/time strings"
url="https://github.com/bear/parsedatetime"
arch="noarch"
license="Apache"
makedepends="py-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/bear/$_pkgname/archive/v$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	cd "$builddir"
	python2 setup.py build
}

check() {
	cd "$builddir"
	python2 setup.py test
}

package() {
	cd "$builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0fd8bfa3411476a20d8874b44036bc162735fb7865d39ca98b0a608daec39daac47100314279dbf66229ec333821492744f7505315d955f58216fdaa75cbf046  parsedatetime-2.4.tar.gz"