aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gitolite/APKBUILD
blob: 673f0d6bd819e51c62c939b9a2c437cb6b9a29d0 (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
46
47
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=gitolite
pkgver=2.1
pkgrel=0
pkgdesc="A centralized git server, with very fine-grained access control and many powerful features."
url="http://github.com/sitaramc/gitolite"
arch="noarch"
license="GPL2"
depends="git perl"
depends_dev=""
makedepends="$depends_dev wget"
install=""
subpackages="$pkgname-doc"
source="saveas-https://github.com/sitaramc/gitolite/tarball/v2.1/gitolite-2.1.tar.gz
	configuration.patch"

_builddir="$srcdir"/sitaramc-gitolite-871ed28

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
}

build() {
	cd "$_builddir"
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/bin \
		"$pkgdir"/etc/gitolite \
		"$pkgdir"/usr/share/gitolite/hooks \
		"$pkgdir"/usr/share/doc/gitolite
	mv src/* "$pkgdir"/usr/bin/
	mv conf/* "$pkgdir"/etc/gitolite/
	mv hooks/* "$pkgdir"/usr/share/gitolite/hooks/
	mv doc/* "$pkgdir"/usr/share/doc/gitolite/
}

md5sums="33e0f6f384cf0596aed974fa563b50c3  gitolite-2.1.tar.gz
b4603bb37d3a746a1508bd7528464ba4  configuration.patch"