aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-parsedatetime/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-parsedatetime/APKBUILD')
-rw-r--r--community/py-parsedatetime/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/py-parsedatetime/APKBUILD b/community/py-parsedatetime/APKBUILD
new file mode 100644
index 0000000000..64e4ed194a
--- /dev/null
+++ b/community/py-parsedatetime/APKBUILD
@@ -0,0 +1,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"