aboutsummaryrefslogtreecommitdiffstats
path: root/main/fossil/APKBUILD
blob: 1f437eba6173cf0694a0e0afb53cf17ebafbec0f (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
# Contributor: Paul Onyschuk <blink@bojary.koba.pl>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fossil
pkgver=2.4
pkgrel=0
pkgdesc="Simple, high-reliability, distributed software configuration management"
url="http://www.fossil-scm.org"
arch="all"
license="BSD"
depends=""
makedepends="libressl-dev sqlite-dev tcl-dev zlib-dev"
source="http://www.fossil-scm.org/index.html/uv/$pkgname-src-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--json \
		--disable-internal-sqlite
	make TCC="${CC:-gcc} $CFLAGS"
}

# The tests don't have all the dependencies they want
# Even with these dependencies, roughly a dozen of them
# are broken anyway.
#
#  ***** Final results: 11 errors out of 34909 tests
#  ***** Considered failures: pre-commit-warnings-fossil-1
#    test-framework-json test-framework-set-manifest th1-checkout-1
#    th1-checkout-2 th1-header-2 th1-artifact-3 th1-artifact-7
#    th1-globalState-1 th1-globalState-8 th1-encode64-3
#  ***** Ignored results: 5 ignored errors out of 34909 tests
#  ***** Ignored failures: merge5-sqlite3-issue stash-1-diff
#    stash-WY-1-CODE stash-3-2 stash-3-2-show-1
#
check() {
	return 0

	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	install -Dm 755 $pkgname "$pkgdir"/usr/bin/$pkgname
}

sha512sums="de7f2321677df7f6dc2a3a20e58f456602d938f40125ef33d401f28cdaa93e38d3db10e109547df269bc95a2ac8669ade05b6fd6fad39e6633f15ffdd91c499f  fossil-src-2.4.tar.gz"