From f4cbb127d45017c14988b232dbae02bc2858c6df Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sat, 18 Jan 2014 03:29:33 +0000 Subject: Sat Jan 18 03:25:57 UTC 2014 --- community/cgit/PKGBUILD | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'community/cgit/PKGBUILD') diff --git a/community/cgit/PKGBUILD b/community/cgit/PKGBUILD index 1fc1de1e1..e6535f2ea 100644 --- a/community/cgit/PKGBUILD +++ b/community/cgit/PKGBUILD @@ -1,44 +1,44 @@ -# $Id: PKGBUILD 95633 2013-08-15 09:46:14Z spupykin $ +# $Id: PKGBUILD 104326 2014-01-17 15:42:38Z lfleischer $ # Maintainer: Sergej Pupykin -# Current Maintainer: Patrick Palka -# Previous Maintainer: Loui Chang +# Maintainer: Lukas Fleischer +# Contributor: Patrick Palka +# Contributor: Loui Chang # Contributor: Andreas Baumann -# Development: http://closure.ath.cx/aur-dev pkgname=cgit -pkgver=0.9.2 -_gitver=1.8.3 -pkgrel=2 +pkgver=0.10 +pkgrel=1 pkgdesc="A web interface for git written in plain C" arch=('i686' 'x86_64') url="http://hjemli.net/git/cgit" license=('GPL2') -depends=('openssl') +depends=('openssl' 'luajit') makedepends=('zlib' 'curl' 'asciidoc') install=cgit.install source=("http://git.zx2c4.com/cgit/snapshot/cgit-$pkgver.tar.xz" - "git-${_gitver}.tar.gz::https://github.com/git/git/archive/v${_gitver}.tar.gz" "apache.example.conf") -md5sums=('fe11018eff8d79caad112f4fac64b90f' - '73224d3dc86c4999cc49484b49c9acc4' +md5sums=('19944c17ecea1b1d1944718ce8ce6b61' 'bd5696bea0654bfcf98f249b1a36737d') +prepare() { + cd "$pkgname-$pkgver" + make get-git +} + build() { cd "$pkgname-$pkgver" - _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=/usr/share/webapps/cgit DESTDIR="$pkgdir" install install-man + + make CGIT_SCRIPT_PATH=/usr/share/webapps/cgit DESTDIR="$pkgdir" prefix=/usr install install-man + 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 + 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" } -- cgit v1.2.3-54-g00ecf