diff --git a/srcpkgs/cgit/template b/srcpkgs/cgit/template index cc9e4d3382..e3f4214a59 100644 --- a/srcpkgs/cgit/template +++ b/srcpkgs/cgit/template @@ -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 }