summaryrefslogtreecommitdiff
path: root/community/cgit/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-18 03:29:33 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-18 03:29:33 +0000
commitf4cbb127d45017c14988b232dbae02bc2858c6df (patch)
tree71d864fa346c59efa48d7c029334b366c6597317 /community/cgit/PKGBUILD
parent953eead14ccfe47904e73cee9cea6e1255f57356 (diff)
Sat Jan 18 03:25:57 UTC 2014
Diffstat (limited to 'community/cgit/PKGBUILD')
-rw-r--r--community/cgit/PKGBUILD40
1 files changed, 20 insertions, 20 deletions
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 <pupykin.s+arch@gmail.com>
-# Current Maintainer: Patrick Palka <patrick@parcs.ath.cx>
-# Previous Maintainer: Loui Chang <louipc.ist at gmail com>
+# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de>
+# Contributor: Patrick Palka <patrick@parcs.ath.cx>
+# Contributor: Loui Chang <louipc.ist at gmail com>
# Contributor: Andreas Baumann <abaumann at yahoo dot com>
-# 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"
}