aboutsummaryrefslogtreecommitdiffstats
path: root/main/gitolite/APKBUILD
blob: c81ce8d7f002751e51a41ad752daf774cc7b9473 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer:	Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>

pkgname=gitolite
pkgver=3.6.6
pkgrel=0
pkgdesc='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'
install=$pkgname.pre-install
pkgusers="git"
pkggroups="git"
source="gitolite-$pkgver.tar.gz::https://github.com/sitaramc/$pkgname/archive/v${pkgver}.tar.gz"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	echo $pkgver > VERSION
}

package() {
	install -d "$pkgdir"/usr/bin || return 1
	install -d "$pkgdir"/usr/lib/gitolite || return 1

	cd "$srcdir"/$pkgname-$pkgver
	./install -to "$pkgdir"/usr/lib/gitolite || return 1
	ln -s /usr/lib/gitolite/gitolite "$pkgdir"/usr/bin/ || return 1
	install -o git -g git -d -m 700 "$pkgdir"/var/lib/git || return 1
}

sha512sums="1529330ed2afa315fcb650c55d515e5d4b61921f46b4d763a759537434492959f100d2219ab7673e568d46f397a25a45d4388fe3827ea988333fc8719820f8bc  gitolite-3.6.6.tar.gz"