summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b83140089f96c5a65403f816d487d7217eb7e62e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Dustin Falgout <dustin@antergos.com>

pkgname=obs-service-set_version-git
_pkgver=0.5.5
pkgver="${_pkgver}.r92"
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")
groups=('obs')
depends=('obs-build' 'git' 'python2')
md5sums=('SKIP')

pkgver() {
	cd "${srcdir}/${pkgname}"
	printf "%s.r%s" "${_pkgver}" "$(git rev-list --count HEAD)"
}	

package() {
	cd "${srcdir}/${pkgname}"
	make DESTDIR="${pkgdir}" PREFIX=/usr install 
}