aboutsummaryrefslogtreecommitdiffstats
path: root/main/gitolite/APKBUILD
blob: cd91f246b2892e30f4962892d31e6e872bd179de (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
# Maintainer:  Bartłomiej Pioteowski <bpiotrowski@alpinelinux.org>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>

pkgname=gitolite
pkgver=3.5.3
pkgrel=1
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
source="https://github.com/sitaramc/$pkgname/tarball/v${pkgver}/$pkgname-$pkgver.tar.gz
	unlink.patch"

prepare() {
	cd "$srcdir"/sitaramc-gitolite-*
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	echo "v${pkgver}" > VERSION
}

package() {
    cd "$srcdir"/sitaramc-gitolite-*

    install -d "$pkgdir"/usr/lib/gitolite || return 1
    install -d "$pkgdir"/usr/bin || return 1
    ./install -to "$pkgdir"/usr/lib/gitolite || return 1
    ln -s /usr/lib/gitolite/gitolite "$pkgdir"/usr/bin/ || return 1
}

md5sums="5459b5c6ac74a97a18129798dcb851d6  gitolite-3.5.3.tar.gz
d726d7c6abbb04e9b0b0465c147a288b  unlink.patch"
sha256sums="fb754716f27dd2748563252b150018057e5ded50575dea2352779d2b55ef3572  gitolite-3.5.3.tar.gz
2cbc426d8e071e4a0d828a984e615b16079d4c50bfa33334487c5d256c392bec  unlink.patch"
sha512sums="cd54451b809078bc27d4791b5fcbfd685e198ce91bfee96b5176e0016b66c24c8b48b6b777bda0bbef92a261e5c8907139d0705bd68fb8b7eb31b23305e2b951  gitolite-3.5.3.tar.gz
38fd2a4c0fff9ae251f305b3e11466e57860d8998bf06fc13ab256e712fb8e5be6f8ddd9b214ee6a85f1c3b11b394ca1099404f772b36a999ccd84448c67a186  unlink.patch"