From e23527f61b49b2d460d2699c383486d9fce95dc3 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Mon, 18 Aug 2014 13:14:52 +0000 Subject: [PATCH] New package: cgit-0.10.2 --- srcpkgs/cgit/template | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 srcpkgs/cgit/template diff --git a/srcpkgs/cgit/template b/srcpkgs/cgit/template new file mode 100644 index 0000000000..91742968e6 --- /dev/null +++ b/srcpkgs/cgit/template @@ -0,0 +1,33 @@ +# Template build file for "cgit". +pkgname=cgit +version=0.10.2 +revision=1 +_git_version=2.0.1 +build_style=gnu-makefile +make_build_args="prefix=/usr" +make_build_target="all doc-man" +make_install_args="prefix=/usr CGIT_SCRIPT_PATH=/usr/share/webapps/cgit" +make_install_target="install install-man" +hostmakedepends="asciidoc" +makedepends="libressl-devel zlib-devel" +short_desc="A fast webinterface for git" +maintainer="Eivind Uggedal " +homepage="http://git.zx2c4.com/cgit/" +license="GPL-2" +distfiles=" + http://git.zx2c4.com/cgit/snapshot/cgit-${version}.tar.xz + https://www.kernel.org/pub/software/scm/git/git-${_git_version}.tar.xz" +checksum=" + 94598e6582752659598e8086d3e2b2a2081df89ac8397460f507b15e71264c8d + ab12a103523b430d8d3e26ac2e05e759bdb1349f10e13bba48bed98f45c6d4df" + +post_extract() { + rm -r git + mv ../git-$_git_version git +} + +pre_build() { + if ! grep -q "^GIT_VER = $_git_version\$" Makefile; then + msg_error "$pkgver: update _git_version to match upstream Makefile.\n" + fi +}