summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 794b80ff5abf0da85bfd625961db018655502c88 (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
25
26
27
28
# Maintainer: Dustin Falgout <dustin@antergos.com>

pkgname=obs-service-tar_scm
_pkgver=0.5.3
pkgver="${_pkgver}.r213"
pkgrel=1
pkgdesc="Source Service for the OpenSUSE Build Service (OBS)"
arch=('any')
url="https://github.com/openSUSE/obs-service-tar_scm"
license=('GPL3')
source=("${pkgname}::git+https://github.com/openSUSE/${pkgname}.git")
groups=('obs')
depends=('python2' 'obs-build' 'git')
optdepends=('subversion: svn repo support.'
			'mercurial: hg repo support.'
			'bzr: bzr repo support.')
backup=("etc/obs/services/tar_scm")
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 
}