Commit bf2e352c authored by Roberto Oliveira's avatar Roberto Oliveira

community/py-parsedatetime: modernize abuild and take maintainership

parent d9de8686
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py-parsedatetime
_pkgname=parsedatetime
pkgver=2.4
pkgrel=0
pkgrel=1
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"
makedepends="py-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/bear/$_pkgname/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
}
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$_builddir"
python2 setup.py build || return 1
cd "$builddir"
python2 setup.py build
}
package() {
cd "$_builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="0fd8bfa3411476a20d8874b44036bc162735fb7865d39ca98b0a608daec39daac47100314279dbf66229ec333821492744f7505315d955f58216fdaa75cbf046 parsedatetime-2.4.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment