forked from ports/contrib
38 lines
962 B
Plaintext
38 lines
962 B
Plaintext
# Description: Git web interface written in C.
|
|
# URL: http://hjemli.net/git/cgit/
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
# Packager: Lucas Hazel, lucas at die dot net dot au
|
|
# Depends on: git asciidoc
|
|
|
|
## prt-get info git | awk '/Version:/ {print $2}'
|
|
gitversion=1.7.4.1
|
|
|
|
name=cgit
|
|
version=0.9.0.2
|
|
release=1
|
|
source=(http://hjemli.net/git/cgit/snapshot/$name-$version.tar.bz2
|
|
http://www.kernel.org/pub/software/scm/git/git-$gitversion.tar.bz2
|
|
cgit.conf)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
if [ $gitversion != "$(/usr/bin/git --version | cut -d ' ' -f 3)" ]; then
|
|
echo 'Did you forget to update gitversion?'
|
|
exit 1
|
|
fi
|
|
|
|
rm -rf git
|
|
ln -s $SRC/git-$gitversion git
|
|
|
|
sed -i \
|
|
-e "s/GIT_VER = .*/GIT_VER = $gitversion/" \
|
|
-e '/^mandir = $(prefix)/s|/share/man|/man|' Makefile
|
|
|
|
make
|
|
make DESTDIR=$PKG install install-man
|
|
|
|
install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/extra/cgit.conf
|
|
install -d -m 0750 $PKG/var/cache/cgit
|
|
}
|