# Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: pkgname=py-parsedatetime pkgver=2.4 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" python2 setup.py build || return 1 } package() { cd "$_builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } sha512sums="0fd8bfa3411476a20d8874b44036bc162735fb7865d39ca98b0a608daec39daac47100314279dbf66229ec333821492744f7505315d955f58216fdaa75cbf046 parsedatetime-2.4.tar.gz"