diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2016-11-29 22:23:32 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-12-27 09:43:43 +0200 |
commit | e5ef8085a93538bfdf2618ba71f861ea65faabf8 (patch) | |
tree | 2e80e962e797c97c58db7a7b133eb892543c26a7 /testing/py-update-checker | |
parent | bcf70461554d855b6e295cca098caee4aad3d1ec (diff) | |
download | aports-e5ef8085a93538bfdf2618ba71f861ea65faabf8.tar.bz2 aports-e5ef8085a93538bfdf2618ba71f861ea65faabf8.tar.xz |
testing/py-update-checker: upgrade to 0.15
Diffstat (limited to 'testing/py-update-checker')
-rw-r--r-- | testing/py-update-checker/APKBUILD | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/testing/py-update-checker/APKBUILD b/testing/py-update-checker/APKBUILD index e3a62952f0..9bf6f25b15 100644 --- a/testing/py-update-checker/APKBUILD +++ b/testing/py-update-checker/APKBUILD @@ -2,40 +2,46 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-update-checker _pkgname=update_checker -pkgver=0.10 +pkgver=0.15 pkgrel=0 pkgdesc="A python module that will check for package updates" url="https://github.com/bboe/update_checker" arch="noarch" license="BSD" -depends="python2" -depends_dev="" -makedepends="python2-dev py-setuptools" -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 -} +makedepends="python2-dev py-setuptools python3-dev" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$_pkgname-$pkgver.tar.gz::https://github.com/bboe/update_checker/archive/v$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" python2 setup.py build || return 1 + python3 setup.py build || return 1 } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } -md5sums="d890a78d7a9a50464ed243de265fb390 update_checker-0.10.tar.gz" -sha256sums="bc1a764c9f064f36ccb6b488c11196c6abdd4b95264458906e66539f51c9e71b update_checker-0.10.tar.gz" -sha512sums="b9cdff39fc244f56663de8882f3794811d8357b87b8b3b81445ca6aa51eadd1bda433fab3f52d218a72494403c4ab8dfe8eedf9e6b8c4ea5218f86f0a6e0a712 update_checker-0.10.tar.gz" +md5sums="17a9056b7f5390d53482ba2cd60aea13 update_checker-0.15.tar.gz" +sha256sums="d7fe54be5780d52adda6367da8f4eac67abcd8ad9f902fd40bbf5a306f4135e8 update_checker-0.15.tar.gz" +sha512sums="90d84da08301ad2edd402d8eddc40efae29759d0fbcf3c24fbb883ab2e474336c6f75a84a8f78a9c1148caccf5aa48414ba3ecaaf6a80cdf59985c7da4db677c update_checker-0.15.tar.gz" |