2014-08-18 15:14:52 +02:00
|
|
|
# Template build file for "cgit".
|
2016-01-16 23:37:53 +01:00
|
|
|
_git_version=2.7.0
|
2014-08-18 20:35:22 +02:00
|
|
|
|
2014-08-18 15:14:52 +02:00
|
|
|
pkgname=cgit
|
2016-01-16 23:37:53 +01:00
|
|
|
version=0.12
|
|
|
|
revision=1
|
2014-08-18 15:14:52 +02:00
|
|
|
hostmakedepends="asciidoc"
|
2015-03-27 10:50:40 +01:00
|
|
|
makedepends="libressl-devel zlib-devel"
|
2014-08-18 15:14:52 +02: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 11:12:35 +01: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"
|
2016-01-16 23:37:53 +01:00
|
|
|
checksum="2ee233849335a64529a01cf2b6165ed492e20268e6e2526d7a7529ef1e24a5b7
|
|
|
|
fa9fb34efce9c80527152a40fbae138e83bd04a15ef9111726252259345a7b0d"
|
2014-08-18 15:14:52 +02:00
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
rm -r git
|
|
|
|
mv ../git-$_git_version git
|
|
|
|
}
|
2015-02-16 11:12:35 +01:00
|
|
|
|
2014-08-18 15:14:52 +02: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 11:12:35 +01:00
|
|
|
|
2014-08-18 20:35:22 +02:00
|
|
|
do_build() {
|
|
|
|
make CC=$CC CFLAGS="$CFLAGS" prefix=/usr ${makejobs} all doc-man
|
|
|
|
}
|
2015-02-16 11:12:35 +01:00
|
|
|
|
2014-08-18 20:35:22 +02:00
|
|
|
do_install() {
|
|
|
|
make CC=$CC CFLAGS="$CFLAGS" prefix=/usr DESTDIR=${DESTDIR} \
|
|
|
|
CGIT_SCRIPT_PATH=/usr/share/webapps/cgit install install-man
|
|
|
|
}
|