blob: 9a3be5d895b85489ff58274125f85c15d7f4dea7 (
plain) (
blame)
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
57
58
59
60
61
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=cgit
pkgver=1.2.2
pkgrel=0
_gitver=2.25.0
pkgdesc="A fast Web interface for Git"
url="https://git.zx2c4.com/cgit/"
arch="all"
license="GPL-2.0-only"
depends=""
makedepends="openssl-dev zlib-dev lua5.3-libs lua5.3-dev asciidoctor gettext-tiny-dev"
subpackages="$pkgname-doc"
source="http://git.zx2c4.com/$pkgname/snapshot/$pkgname-$pkgver.tar.xz
https://www.kernel.org/pub/software/scm/git/git-$_gitver.tar.xz
"
# Git makeopts come first
_makeopts="NO_CURL=1
NO_REGEX=NeedsStartEnd
NO_SVN_TESTS=YesPlease
NO_SYS_POLL_H=1
NO_TCLTK=YesPlease
ASCIIDOC=asciidoctor
LUA_PKGCONFIG=lua
prefix=/usr"
prepare() {
# check that upstream git ver corresponds with ours
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() {
sed -i -e 's:a2x -f:asciidoctor -b:' Makefile
make $_makeopts all doc-man
}
check() {
make $_makeopts test
}
package() {
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
8bbada0451fe0a3314e1b9a43a74135115449aa41f5b3e7f960279e4a7fe6069c36e78825fc4b60d06806e3a6fa8158f327cb8a3801686ac22a35e3704244191 git-2.25.0.tar.xz"
|