blob: 64e4ed194a466866a88df97123318c4b99bb032c (
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-parsedatetime
pkgver=1.5
pkgrel=0
pkgdesc="Parse human-readable date/time strings"
url="https://github.com/bear/parsedatetime"
arch="noarch"
license="Apache"
depends=""
depends_dev=""
makedepends="$depends_dev py-setuptools"
install=""
subpackages=""
source="parsedatetime-$pkgver.tar.gz::https://github.com/bear/parsedatetime/archive/v$pkgver.tar.gz"
_builddir="$srcdir"/parsedatetime-$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="f7b6b8258728ca9aa2ef536b3f221baf parsedatetime-1.5.tar.gz"
sha256sums="4698420df9765f8f4ea41d9e771874ea8dff907e695f26634919b41f39590980 parsedatetime-1.5.tar.gz"
sha512sums="cd76711f403e1344a6d4ac56c7d39ad280a47c10333a09ec2a65152b79f7a284d1d6ba3af7b7d7df9a32f650036012a115a3811d34f5dfe13582acec2ee5f130 parsedatetime-1.5.tar.gz"
|