2014-08-18 13:14:52 +00:00
|
|
|
# Template build file for "cgit".
|
2015-03-13 22:03:23 +00:00
|
|
|
_git_version=2.3.2
|
2014-08-18 18:35:22 +00:00
|
|
|
|
2014-08-18 13:14:52 +00:00
|
|
|
pkgname=cgit
|
2015-03-13 22:03:23 +00:00
|
|
|
version=0.11.2
|
2015-03-05 21:36:11 +00:00
|
|
|
revision=1
|
2014-08-18 13:14:52 +00:00
|
|
|
hostmakedepends="asciidoc"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="libressl-devel zlib-devel"
|
2014-08-18 13:14:52 +00:00
|
|
|
short_desc="A fast webinterface for git"
|
|
|
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
|
|
|
homepage="http://git.zx2c4.com/cgit/"
|
|
|
|
license="GPL-2"
|
2015-02-16 10:12:35 +00:00
|
|
|
distfiles="http://git.zx2c4.com/cgit/snapshot/cgit-${version}.tar.xz
|
|
|
|
https://www.kernel.org/pub/software/scm/git/git-${_git_version}.tar.xz"
|
2015-03-13 22:03:23 +00:00
|
|
|
checksum="2e126e770693d7296c7eb5eb83b809410aef29870bfe8f54da072a3f4d813e3b
|
|
|
|
18eb8462026a55ab34a657282e894bdaad331ea59bfebeba5eb45b27b58cf825"
|
2014-08-18 13:14:52 +00:00
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
rm -r git
|
|
|
|
mv ../git-$_git_version git
|
|
|
|
}
|
2015-02-16 10:12:35 +00:00
|
|
|
|
2014-08-18 13:14:52 +00:00
|
|
|
pre_build() {
|
|
|
|
if ! grep -q "^GIT_VER = $_git_version\$" Makefile; then
|
|
|
|
msg_error "$pkgver: update _git_version to match upstream Makefile.\n"
|
|
|
|
fi
|
|
|
|
}
|
2015-02-16 10:12:35 +00:00
|
|
|
|
2014-08-18 18:35:22 +00:00
|
|
|
do_build() {
|
|
|
|
make CC=$CC CFLAGS="$CFLAGS" prefix=/usr ${makejobs} all doc-man
|
|
|
|
}
|
2015-02-16 10:12:35 +00:00
|
|
|
|
2014-08-18 18:35:22 +00:00
|
|
|
do_install() {
|
|
|
|
make CC=$CC CFLAGS="$CFLAGS" prefix=/usr DESTDIR=${DESTDIR} \
|
|
|
|
CGIT_SCRIPT_PATH=/usr/share/webapps/cgit install install-man
|
|
|
|
}
|