contrib/cgit/Pkgfile
2020-05-15 23:15:42 +10:00

27 lines
760 B
Plaintext

# Description: Git web interface written in C.
# URL: https://git.zx2c4.com/cgit/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: asciidoc curl
name=cgit
version=1.2.3
release=1
source=(https://git.zx2c4.com/cgit/snapshot/$name-$version.tar.xz
cgit.conf)
build() {
cd $name-$version
make get-git
make
make doc-man
make CGIT_SCRIPT_PATH=/usr/share/webapps/cgit DESTDIR=$PKG prefix=/usr install install-man
install -d $PKG/var/cache/cgit $PKG/usr/lib/cgit
install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/original/extra/cgit.conf
install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/extra/cgit.conf
mv $PKG/usr/share/webapps/cgit/cgit.cgi $PKG/usr/lib/cgit
ln -sf ../../../lib/cgit/cgit.cgi $PKG/usr/share/webapps/cgit/cgit.cgi
}