2010-12-15 00:20:47 +11:00
|
|
|
# Description: Git web interface written in C.
|
2017-06-20 00:46:50 +10:00
|
|
|
# URL: https://git.zx2c4.com/cgit/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2017-11-01 23:35:12 +11:00
|
|
|
# Depends on: asciidoc curl
|
2009-01-29 15:56:35 +11:00
|
|
|
|
|
|
|
name=cgit
|
2020-05-15 23:15:42 +10:00
|
|
|
version=1.2.3
|
2009-01-29 15:56:35 +11:00
|
|
|
release=1
|
2017-06-20 00:46:50 +10:00
|
|
|
source=(https://git.zx2c4.com/cgit/snapshot/$name-$version.tar.xz
|
2010-12-16 01:53:13 +11:00
|
|
|
cgit.conf)
|
2009-01-29 15:56:35 +11:00
|
|
|
|
|
|
|
build() {
|
2010-12-15 00:20:47 +11:00
|
|
|
cd $name-$version
|
2010-12-16 01:53:13 +11:00
|
|
|
|
2017-06-20 00:46:50 +10:00
|
|
|
make get-git
|
2011-05-12 18:21:08 +10:00
|
|
|
make
|
2017-06-20 00:46:50 +10:00
|
|
|
make doc-man
|
|
|
|
make CGIT_SCRIPT_PATH=/usr/share/webapps/cgit DESTDIR=$PKG prefix=/usr install install-man
|
2010-12-16 01:53:13 +11:00
|
|
|
|
2017-06-20 00:46:50 +10:00
|
|
|
install -d $PKG/var/cache/cgit $PKG/usr/lib/cgit
|
|
|
|
install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/original/extra/cgit.conf
|
2010-12-16 01:53:13 +11:00
|
|
|
install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/extra/cgit.conf
|
2017-06-20 00:46:50 +10:00
|
|
|
|
|
|
|
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
|
2009-01-29 15:56:35 +11:00
|
|
|
}
|