aboutsummaryrefslogtreecommitdiffstats
path: root/main/cgit/APKBUILD
blob: 6b30ed78460e88663e0ee0f4c484b5f9458645af (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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cgit
pkgver=0.8.3.1
pkgrel=2
_gitver=1.6.4.3
pkgdesc="a fast webinterface for git"
url="http://hjemli.net/git/cgit"
license=GPL-2
makedepends="openssl-dev zlib-dev"
depends=
source="
	http://hjemli.net/git/cgit/snapshot/$pkgname-$pkgver.tar.bz2
	http://www.kernel.org/pub/software/scm/git/git-$_gitver.tar.bz2
	"

_makeopts="NO_ICONV=YesPlease
	NO_TCLTK=YesPlease
	NO_SVN_TESTS=YesPlease"

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	rm -rf git
	ln -s ../git-$_gitver git
}

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make $_makeopts
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make $_makeopts DESTDIR="$pkgdir" \
		CGIT_SCRIPT_PATH=/usr/share/webapps/cgit \
		install
	ln -s cgit.cgi "$pkgdir"/usr/share/webapps/cgit/cgit
}

md5sums="cc61989f702ce77e56137be67e01f3ed  cgit-0.8.3.1.tar.bz2
4af70ff9b8f209704059f7ef96127236  git-1.6.4.3.tar.bz2"