Date: Tuesday, February 11, 2020 @ 09:01:59
  Author: lfleischer
Revision: 566841

archrelease: copy trunk to community-x86_64

Added:
  cgit-archweb/repos/community-x86_64/
  cgit-archweb/repos/community-x86_64/PKGBUILD
    (from rev 566840, cgit-archweb/trunk/PKGBUILD)
  cgit-archweb/repos/community-x86_64/cgit.install
    (from rev 566840, cgit-archweb/trunk/cgit.install)

--------------+
 PKGBUILD     |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 cgit.install |    5 +++++
 2 files changed, 54 insertions(+)

Copied: cgit-archweb/repos/community-x86_64/PKGBUILD (from rev 566840, 
cgit-archweb/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2020-02-11 09:01:59 UTC (rev 566841)
@@ -0,0 +1,49 @@
+# Maintainer: Lukas Fleischer <lfleisc...@archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+a...@gmail.com>
+# Contributor: Patrick Palka <patr...@parcs.ath.cx>
+# Contributor: Loui Chang <louipc.ist at gmail com>
+# Contributor: Andreas Baumann <abaumann at yahoo dot com>
+
+pkgname=cgit-archweb
+pkgver=1.2.2
+_commit=c45eca9e0cdf9bfbbb3a8431b5445844d4b4206e
+pkgrel=2
+pkgdesc="A web interface for git written in plain C (archweb branch)"
+arch=('x86_64')
+url="https://git.zx2c4.com/cgit/";
+license=('GPL2')
+depends=('openssl' 'luajit')
+makedepends=('git' 'zlib' 'curl' 'asciidoc')
+optdepends=('groff: about page using man page syntax'
+           'python-pygments: syntax highlighting support'
+           'python-docutils: about page formatted with reStructuredText'
+           'python-markdown: about page formatted with markdown'
+           'mime-types: serve file with correct content-type header')
+install=cgit.install
+source=("$pkgname::git+https://git.archlinux.org/cgit.git#commit=${_commit}";)
+sha256sums=('SKIP')
+
+prepare() {
+       cd "$pkgname"
+
+       git submodule init
+       git submodule update
+}
+
+build() {
+       cd "$pkgname"
+
+       make
+       make doc-man
+}
+
+package() {
+       cd "$pkgname"
+       
+       make CGIT_SCRIPT_PATH="/usr/share/webapps/$pkgname" DESTDIR="$pkgdir" 
prefix=/usr filterdir="/usr/lib/$pkgname/filters" install
+       
+       install -vd "$pkgdir/var/cache/$pkgname"
+       mkdir -p "$pkgdir/usr/lib/$pkgname"
+       mv "$pkgdir/usr/share/webapps/$pkgname/cgit.cgi" 
"$pkgdir/usr/lib/$pkgname"
+       ln -sf ../../../lib/$pkgname/cgit.cgi 
"$pkgdir/usr/share/webapps/$pkgname/cgit.cgi"
+}

Copied: cgit-archweb/repos/community-x86_64/cgit.install (from rev 566840, 
cgit-archweb/trunk/cgit.install)
===================================================================
--- community-x86_64/cgit.install                               (rev 0)
+++ community-x86_64/cgit.install       2020-02-11 09:01:59 UTC (rev 566841)
@@ -0,0 +1,5 @@
+post_install() {
+       chown -v http:http var/cache/cgit-archweb
+       echo "==> cgit looks at /etc/cgitrc for configuration. There is"
+       echo "==> an example configuration file in the cgitrc(5) man page."
+}

Reply via email to