contrib/cgit/Pkgfile

27 lines
760 B
Plaintext
Raw Normal View History

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