blob: ac19983111a8fdd82be95f711b678ac7f1232ede (
plain)
1 # Description: Git web interface written in C.
2 # URL: https://git.zx2c4.com/cgit/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: asciidoc curl
5
6 name=cgit
7 version=1.2.3
8 release=1
9 source=(https://git.zx2c4.com/cgit/snapshot/$name-$version.tar.xz
10 cgit.conf)
11
12 build() {
13 cd $name-$version
14
15 make get-git
16 make
17 make doc-man
18 make CGIT_SCRIPT_PATH=/usr/share/webapps/cgit DESTDIR=$PKG prefix=/usr install install-man
19
20 install -d $PKG/var/cache/cgit $PKG/usr/lib/cgit
21 install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/original/extra/cgit.conf
22 install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/extra/cgit.conf
23
24 mv $PKG/usr/share/webapps/cgit/cgit.cgi $PKG/usr/lib/cgit
25 ln -sf ../../../lib/cgit/cgit.cgi $PKG/usr/share/webapps/cgit/cgit.cgi
26 }
|