mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
testing/py-update-checker: upgrade to 0.15
This commit is contained in:
parent
bcf7046155
commit
e5ef8085a9
@ -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"
|
||||
}
|
||||
|
||||
md5sums="d890a78d7a9a50464ed243de265fb390 update_checker-0.10.tar.gz"
|
||||
sha256sums="bc1a764c9f064f36ccb6b488c11196c6abdd4b95264458906e66539f51c9e71b update_checker-0.10.tar.gz"
|
||||
sha512sums="b9cdff39fc244f56663de8882f3794811d8357b87b8b3b81445ca6aa51eadd1bda433fab3f52d218a72494403c4ab8dfe8eedf9e6b8c4ea5218f86f0a6e0a712 update_checker-0.10.tar.gz"
|
||||
_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="17a9056b7f5390d53482ba2cd60aea13 update_checker-0.15.tar.gz"
|
||||
sha256sums="d7fe54be5780d52adda6367da8f4eac67abcd8ad9f902fd40bbf5a306f4135e8 update_checker-0.15.tar.gz"
|
||||
sha512sums="90d84da08301ad2edd402d8eddc40efae29759d0fbcf3c24fbb883ab2e474336c6f75a84a8f78a9c1148caccf5aa48414ba3ecaaf6a80cdf59985c7da4db677c update_checker-0.15.tar.gz"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user