blob: 8e881143190fc3e307088683c9ca3d5ae4c2f2e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cgit
pkgver=1.2.2
pkgrel=0
_gitver=2.25.0
pkgdesc="A fast webinterface for git"
url="https://git.zx2c4.com/cgit/"
arch="all"
license="GPL-2.0-only"
makedepends="openssl-dev zlib-dev lua5.3-dev asciidoc"
subpackages="$pkgname-doc"
source="http://git.zx2c4.com/cgit/snapshot/cgit-$pkgver.tar.xz
https://www.kernel.org/pub/software/scm/git/git-$_gitver.tar.gz
"
_makeopts="NO_ICONV=YesPlease
NO_GETTEXT=YesPlease
NO_TCLTK=YesPlease
NO_SVN_TESTS=YesPlease
NO_REGEX=NeedsStartEnd
LUA_PKGCONFIG=lua5.3
prefix=/usr"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$builddir"
# check that upstream git ver corresponds with our
local _ver=$(awk -F'[ \t]*=[ \t]*' '/^GIT_VER/ { print $2 }' Makefile)
if [ "$_ver" != "$_gitver" ]; then
error "Please set _gitver in APKBUILD to $_ver"
return 1
fi
rm -rf git
mv ../git-$_gitver git
default_prepare
}
build() {
cd "$builddir"
make $_makeopts all doc-man
}
package() {
cd "$builddir"
make $_makeopts DESTDIR="$pkgdir" \
CGIT_SCRIPT_PATH=/usr/share/webapps/cgit \
install install-man
ln -s cgit.cgi "$pkgdir"/usr/share/webapps/cgit/cgit
}
sha512sums="ac006db0b14ae84fc9304b4cb1b49c3445d229593071be39b2d6e2709b54d03b11efd0ac1b5daef8160278303a7611c897fb6cf1e008c66c3f2463151e650af9 cgit-1.2.2.tar.xz
2ce3502478cbbb3b2d9aa3d230ddd8f799b6a1d7cee356d59bc105d8b6d0f198df0011c6fe57fd9fc4cc729998d6674c544cdbd2e3e8a1573170cae762e64e58 git-2.25.0.tar.gz"
|