cgit: restore old paths

This commit is contained in:
Duncaen 2020-01-19 23:37:54 +01:00
parent 83cb2d0097
commit 50d09501fc
No known key found for this signature in database
GPG key ID: 335C1D17EC3D6E35

View file

@ -2,7 +2,12 @@
_git_version=2.25.0
pkgname=cgit
version=1.2.2
revision=1
revision=2
make_build_args="
prefix=/usr
NO_REGEX=NeedsStartEnd
CGIT_DATA_PATH=/usr/share/webapps/cgit
CGIT_SCRIPT_PATH=/usr/libexec/cgit"
hostmakedepends="asciidoc"
makedepends="libressl-devel zlib-devel"
checkdepends="perl"
@ -27,8 +32,8 @@ pre_build() {
}
do_build() {
make NO_REGEX=NeedsStartEnd CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
prefix=/usr ${makejobs} all doc-man
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
${makejobs} ${make_build_args} all doc-man
}
do_check() {
@ -36,6 +41,8 @@ do_check() {
}
do_install() {
make NO_REGEX=NeedsStartEnd CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
prefix=/usr DESTDIR=${DESTDIR} install install-man
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
DESTDIR=${DESTDIR} ${make_build_args} install install-man
ln -s /usr/libexec/cgit/cgit.cgi ${DESTDIR}/usr/share/webapps/cgit/cgit.cgi
}