aboutsummaryrefslogtreecommitdiffstats
path: root/main/gitolite/APKBUILD
blob: a32289e53120902085b5f061786b3f7f0595acf2 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>

pkgname=gitolite
pkgver=3.6.4
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
}

md5sums="ab1a490e1b04e2c6fbee773eaa2afe69  gitolite-3.6.4.tar.gz"
sha256sums="15b19181dcc00233e4d031f07d769cf930e93963a925a71d684748068f38dd63  gitolite-3.6.4.tar.gz"
sha512sums="7c709372f66c4620109824191d6bf736b1066d74e5acd481fa552a6f010a38d6d7d17629a92fe7b944b43c6cac864db80217cefadc0e3a6dbf63530cff89cd6d  gitolite-3.6.4.tar.gz"