diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/cgit |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cgit')
-rw-r--r-- | community/cgit/PKGBUILD | 37 | ||||
-rw-r--r-- | community/cgit/cgit.install | 7 |
2 files changed, 44 insertions, 0 deletions
diff --git a/community/cgit/PKGBUILD b/community/cgit/PKGBUILD new file mode 100644 index 000000000..503cac629 --- /dev/null +++ b/community/cgit/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 43711 2011-03-29 10:19:12Z 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> +# Contributor: Andreas Baumann <abaumann at yahoo dot com> +# Development: http://closure.ath.cx/aur-dev + +pkgname=cgit +pkgver=0.9 +pkgrel=2 +pkgdesc="A web interface for git written in plain C" +arch=('i686' 'x86_64') +url="http://hjemli.net/git/cgit" +license=('GPL') +depends=('openssl') +makedepends=('git' 'zlib' 'curl' 'asciidoc') +install=cgit.install +source=("http://hjemli.net/git/cgit/snapshot/$pkgname-$pkgver.tar.bz2") +md5sums=('b55f953c5c8a418bca72b3de3c297270') + +build() { + cd "$pkgname-$pkgver" + + make get-git + make + make doc-man +} + +package() { + cd "$pkgname-$pkgver" + + make CGIT_SCRIPT_PATH=/srv/http/cgit DESTDIR="$pkgdir" install install-man + install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" + install -vd "$pkgdir/var/cache/$pkgname" +} + +md5sums=('b55f953c5c8a418bca72b3de3c297270') diff --git a/community/cgit/cgit.install b/community/cgit/cgit.install new file mode 100644 index 000000000..7d696ada9 --- /dev/null +++ b/community/cgit/cgit.install @@ -0,0 +1,7 @@ +post_install() { + echo -n "Setting ownership of /var/cache/cgit to http:http ... " + chown -v http:http var/cache/cgit + echo "done." + echo -n "cgit looks at /etc/cgitrc for configuration. there is " + echo "an example configuration file in its manpage." +} |