void-packages/srcpkgs/cgit/template
Nathan Owens d539eed489 cgit: unmark broken
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
2019-12-22 08:20:06 +01:00

41 lines
1.1 KiB
Bash

# Template file for 'cgit'
_git_version=2.18.0
pkgname=cgit
version=1.2.1
revision=1
hostmakedepends="asciidoc"
makedepends="libressl-devel zlib-devel"
checkdepends="perl"
short_desc="Fast webinterface for git"
maintainer="Eivind Uggedal <eivind@uggedal.com>"
license="GPL-2.0-only"
homepage="https://git.zx2c4.com/cgit/"
distfiles="https://git.zx2c4.com/cgit/snapshot/cgit-${version}.tar.xz
https://www.kernel.org/pub/software/scm/git/git-${_git_version}.tar.xz"
checksum="3c547c146340fb16d4134326e7524bfb28ffa681284f1e3914bde1c27a9182bf
8b40be383a603147ae29337136c00d1c634bdfdc169a30924a024596a7e30e92"
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
}
do_build() {
make NO_REGEX=NeedsStartEnd CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
prefix=/usr ${makejobs} all doc-man
}
do_check() {
make test
}
do_install() {
make NO_REGEX=NeedsStartEnd CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
prefix=/usr DESTDIR=${DESTDIR} install install-man
}