diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-04-15 17:52:31 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-04-15 17:52:31 +0000 |
commit | bf2e352cb700ed566f0285970771702a013024c7 (patch) | |
tree | 8f01eb7b92c39be50918a1726d1326b15c2c4a47 | |
parent | d9de868659717e87fef460c3996457c54241c738 (diff) | |
download | aports-bf2e352cb700ed566f0285970771702a013024c7.tar.bz2 aports-bf2e352cb700ed566f0285970771702a013024c7.tar.xz |
community/py-parsedatetime: modernize abuild and take maintainership
-rw-r--r-- | community/py-parsedatetime/APKBUILD | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/community/py-parsedatetime/APKBUILD b/community/py-parsedatetime/APKBUILD index 84fef7fa8f..ede6e68635 100644 --- a/community/py-parsedatetime/APKBUILD +++ b/community/py-parsedatetime/APKBUILD @@ -1,38 +1,26 @@ # 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" |