summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2cedd1c2a38f44a73a5f1605064d348b10dba97b (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: steeltitanium <steeltitanium1 at gmail dot com>
# Contributor: X0rg

pkgname=obs-service-tar_scm
pkgver=0.10.41
pkgrel=1
pkgdesc="Source Service for the OpenSUSE Build Service (OBS)"
arch=('any')
url="https://github.com/openSUSE/obs-service-tar_scm"
license=('GPL2')
groups=('obs')
depends=('obs-build'
	'python'
	'python-pyaml'
	'python-dateutil')
checkdepends=('flake8'
	'python-mock'
	'python-pylint'
	'python-dulwich'
	'cpio'
	'git'
	'subversion'
	'mercurial'
	'bzr')
optdepends=('cpio: needed for running properly the obs_scm source service'
	'git: git repo support'
	'subversion: svn repo support'
	'mercurial: hg repo support'
	'bzr: bzr repo support')
backup=("etc/obs/services/tar_scm")
source=("$pkgname-$pkgver.tar.gz::https://github.com/openSUSE/obs-service-tar_scm/archive/$pkgver.tar.gz")
sha512sums=('2f7c3b807ee9d2735330db7dbae5eac71e2a344c37276ab31941576693dfcceb6524f50d055cbb23bfc081a8152f645d4981a25a31a7c3dc07cd17be93a50c8f')

check() {
	cd "$srcdir/$pkgname-$pkgver"
	if [[ -d "tests/tmp" ]]; then
		rm -rf "tests/tmp"
	fi
	make check3
}

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