diff options
Diffstat (limited to 'community/cgit/PKGBUILD')
-rw-r--r-- | community/cgit/PKGBUILD | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/community/cgit/PKGBUILD b/community/cgit/PKGBUILD index 6d0e9535f..7f536231d 100644 --- a/community/cgit/PKGBUILD +++ b/community/cgit/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 52856 2011-07-29 11:59:24Z spupykin $ +# $Id: PKGBUILD 53245 2011-08-02 14:54:02Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Current Maintainer: Patrick Palka <patrick@parcs.ath.cx> # Previous Maintainer: Loui Chang <louipc.ist at gmail com> @@ -7,7 +7,8 @@ pkgname=cgit pkgver=0.9.0.2 -pkgrel=1 +_gitver=1.7.4 +pkgrel=2 pkgdesc="A web interface for git written in plain C" arch=('i686' 'x86_64' 'mips64el') url="http://hjemli.net/git/cgit" @@ -15,19 +16,30 @@ license=('GPL') depends=('openssl') makedepends=('git' 'zlib' 'curl' 'asciidoc') install=cgit.install -source=("http://hjemli.net/git/cgit/snapshot/$pkgname-$pkgver.tar.bz2") -md5sums=('5b92b07e0107ff24a783adfb8c0cd1f2') +source=("http://hjemli.net/git/cgit/snapshot/$pkgname-$pkgver.tar.bz2" + "http://www.kernel.org/pub/software/scm/git/git-${_gitver}.tar.bz2" + "apache.example.conf") +md5sums=('5b92b07e0107ff24a783adfb8c0cd1f2' + 'fa24dc1ef0b663327ea0fe1981365b39' + 'bd5696bea0654bfcf98f249b1a36737d') build() { cd "$pkgname-$pkgver" - make get-git + _cgit_gitver=`grep 'GIT_VER = ' Makefile | cut -f3 -d\ ` + [ "x${_gitver}" == "x${_cgit_gitver}" ] || { msg "Bad git version"; return 1; } + rm -rf git/* + mv ../git-${_gitver}/* git/ make make doc-man } package() { cd "$pkgname-$pkgver" - make CGIT_SCRIPT_PATH=/srv/http/cgit DESTDIR="$pkgdir" install install-man + make CGIT_SCRIPT_PATH=/usr/share/webapps/cgit DESTDIR="$pkgdir" install install-man install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" install -vd "$pkgdir/var/cache/$pkgname" + install -vDm0644 $srcdir/apache.example.conf $pkgdir/etc/webapps/cgit/apache.example.conf + mkdir -p $pkgdir/usr/lib/cgit + mv $pkgdir/usr/share/webapps/cgit/cgit.cgi $pkgdir/usr/lib/cgit + ln -sf ../../../lib/cgit/cgit.cgi $pkgdir/usr/share/webapps/cgit/cgit.cgi } |