diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 16 insertions, 14 deletions
@@ -1,24 +1,26 @@ -# Maintainer: Dustin Falgout <dustin@antergos.com> +# Maintainer: X0rg pkgname=obs-service-set_version -_pkgver=0.5.3 -pkgver="${_pkgver}.r77" +pkgver=0.5.13 pkgrel=1 pkgdesc="Version Service for the OpenSUSE Build Service (OBS)" arch=('any') -url="https://github.com/openSUSE/${pkgname}" -license=('GPL3') -source=("${pkgname}::git+https://github.com/openSUSE/${pkgname}.git") +url="https://github.com/openSUSE/obs-service-set_version" +license=('GPL2') groups=('obs') -depends=('obs-build' 'git' 'python2') -md5sums=('SKIP') +depends=('obs-build' + 'python-packaging') +checkdepends=('flake8' + 'python-ddt') +source=("$pkgname-$pkgver.tar.gz::https://github.com/openSUSE/obs-service-set_version/archive/$pkgver.tar.gz") +sha512sums=('65471e8c637037d412ef0ea0b7e8ad2b64b417f22eac7636ce6989465f3a994ee159f28a146cc925928b68be3d2f6d0560c056ec976233149d7148dabe23054a') -pkgver() { - cd "${srcdir}/${pkgname}" - printf "%s.r%s" "${_pkgver}" "$(git rev-list --count HEAD)" -} +check() { + cd "$srcdir/$pkgname-$pkgver" + make test +} package() { - cd "${srcdir}/${pkgname}" - make DESTDIR="${pkgdir}" PREFIX=/usr install + cd "$srcdir/$pkgname-$pkgver" + make PREFIX="/usr" DESTDIR="$pkgdir" install } |