contrib/cgit/Pkgfile

38 lines
962 B
Plaintext
Raw Normal View History

2010-12-14 14:20:47 +01:00
# Description: Git web interface written in C.
2009-01-29 05:56:35 +01:00
# URL: http://hjemli.net/git/cgit/
2010-12-14 14:20:47 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Lucas Hazel, lucas at die dot net dot au
2010-12-15 15:53:13 +01:00
# Depends on: git asciidoc
2009-01-29 05:56:35 +01:00
2011-01-09 07:42:57 +01:00
## prt-get info git | awk '/Version:/ {print $2}'
2011-05-12 10:21:08 +02:00
gitversion=1.7.4.1
2009-02-13 03:17:09 +01:00
2009-01-29 05:56:35 +01:00
name=cgit
version=0.9.0.2
2009-01-29 05:56:35 +01:00
release=1
2009-02-13 03:17:09 +01:00
source=(http://hjemli.net/git/cgit/snapshot/$name-$version.tar.bz2
2010-12-15 15:53:13 +01:00
http://www.kernel.org/pub/software/scm/git/git-$gitversion.tar.bz2
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
if [ $gitversion != "$(/usr/bin/git --version | cut -d ' ' -f 3)" ]; then
echo 'Did you forget to update gitversion?'
exit 1
fi
2010-12-14 14:20:47 +01:00
rm -rf git
ln -s $SRC/git-$gitversion git
2010-12-15 15:53:13 +01:00
2011-05-12 10:21:08 +02:00
sed -i \
-e "s/GIT_VER = .*/GIT_VER = $gitversion/" \
-e '/^mandir = $(prefix)/s|/share/man|/man|' Makefile
make
make DESTDIR=$PKG install install-man
2010-12-15 15:53:13 +01:00
install -D -m 0640 $SRC/cgit.conf $PKG/etc/apache/extra/cgit.conf
install -d -m 0750 $PKG/var/cache/cgit
2009-01-29 05:56:35 +01:00
}