41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'cgit'
|
|
_git_version=2.25.0
|
|
pkgname=cgit
|
|
version=1.2.2
|
|
revision=1
|
|
hostmakedepends="asciidoc"
|
|
makedepends="libressl-devel zlib-devel"
|
|
checkdepends="perl"
|
|
short_desc="Hyperfast web frontend for git repositories written in C"
|
|
maintainer="Duncaen <duncaen@voidlinux.org>"
|
|
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="3f97ce944d0f3fe0782bea3c46eafa5ff151212ea5bec31f99e5cb1775d4b236
|
|
c060291a3ffb43d7c99f4aa5c4d37d3751cf6bca683e7344ea407ea504d9a8d0"
|
|
|
|
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
|
|
}
|