diff options
author | prspkt <prspkt@protonmail.com> | 2019-04-27 21:06:47 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-04-27 21:38:35 +0300 |
commit | 3105c58ad7ed50d4657da0bf42c08c8a8274868c (patch) | |
tree | e76ad5ac452f17bb0dec3e2d553207f1c0be8b0d /testing/py3-daterangestr/APKBUILD | |
parent | 27603132cbcad239c4f7f38ae17d361e90510bf3 (diff) | |
download | aports-3105c58ad7ed50d4657da0bf42c08c8a8274868c.tar.bz2 aports-3105c58ad7ed50d4657da0bf42c08c8a8274868c.tar.xz |
testing/py-daterangestr: upgrade to python3
Diffstat (limited to 'testing/py3-daterangestr/APKBUILD')
-rw-r--r-- | testing/py3-daterangestr/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/testing/py3-daterangestr/APKBUILD b/testing/py3-daterangestr/APKBUILD new file mode 100644 index 0000000000..4c6dae19ca --- /dev/null +++ b/testing/py3-daterangestr/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py3-daterangestr +_pkgname=daterangestr +pkgver=0.0.3 +pkgrel=0 +pkgdesc="Python converter for start and end dates" +url="https://github.com/marians/py-daterangestr" +arch="noarch" +license="MIT" +replaces="py-daterangestr" # for backwards compatibility +replaces="py-daterangestr=$pkgver-r$pkgrel" # for backwards compatibility +depends="python3" +depends_dev="" +install="" +subpackages="" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$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" + python3 setup.py build || return 1 +} + +package() { + cd "$_builddir" + python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="22a61e85902016b1d5b08caae1957050 daterangestr-0.0.3.tar.gz" +sha256sums="d807858d517f3b73ff63508ee6783514a5ce4fb91bf2ee5453de20e6c7093e9d daterangestr-0.0.3.tar.gz" +sha512sums="eeba3792cb7e9ad4e308821866d4f555829267a7790d6bedc8ad95b2dbcf6235f4181947a63d55d052dcdfac1f1c0e550e8f4e41ec5a851d75b47040246c05a6 daterangestr-0.0.3.tar.gz" |