[arch-commits] Commit in cgit-archweb/repos (3 files)

Christian Hesse eworm at archlinux.org
Mon Jun 28 20:26:11 UTC 2021


    Date: Monday, June 28, 2021 @ 20:26:11
  Author: eworm
Revision: 967747

archrelease: copy trunk to community-testing-x86_64

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

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

Copied: cgit-archweb/repos/community-testing-x86_64/PKGBUILD (from rev 967746, cgit-archweb/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-06-28 20:26:11 UTC (rev 967747)
@@ -0,0 +1,54 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Patrick Palka <patrick at 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.3
+_commit=331698106fe56d53b8a354248886e6b482988656
+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'
+	    'gzip: gzip compressed snapshots'
+	    'bzip2: bzip2 compressed snapshots'
+	    'lzip: lzip compressed snapshots'
+	    'xz: xz compressed snapshots'
+	    'zstd: zstd compressed snapshots'
+	    'mime-types: serve file with correct content-type header')
+install=cgit.install
+source=("$pkgname::git+https://gitlab.archlinux.org/archlinux/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-testing-x86_64/cgit.install (from rev 967746, cgit-archweb/trunk/cgit.install)
===================================================================
--- community-testing-x86_64/cgit.install	                        (rev 0)
+++ community-testing-x86_64/cgit.install	2021-06-28 20:26:11 UTC (rev 967747)
@@ -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."
+}




More information about the arch-commits mailing list