aboutsummaryrefslogtreecommitdiffstats
path: root/community/fossil/APKBUILD
blob: 8f75d080c1fdacaccc13d4c2a3d07f7bc4f69b85 (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
# Contributor: Paul Onyschuk <blink@bojary.koba.pl>
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: tcely <fossil+aports@tcely.33mail.com>
_pkgname="fossil" # upstream name
pkgname="${_pkgname}"
pkgver="2.9"
pkgrel=0
pkgdesc="Simple, high-reliability, distributed software configuration management"
url="https://www.fossil-scm.org"
arch="all"
license="BSD-2-Clause"
options="!check" # missing tcl modules
depends=""
checkdepends="coreutils ed tcllib"
makedepends="openssl-dev sqlite-dev tcl-dev zlib-dev"
source="https://www.fossil-scm.org/index.html/uv/${_pkgname}-src-${pkgver}.tar.gz"
builddir="${srcdir}/${_pkgname}-${pkgver}"

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

check() {
	make TESTFLAGS="-quiet -halt" test
}

package() {
	install -Dm 755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}

sha512sums="c3786d4ae5517c88917819448863e9e1e37704a7073a1c87c042660313b77ce3a63f32e35e6a56af1c681e7b8a5acc652b4447d0387b8a8a5b3b5aa04dd9a9b5  fossil-src-2.9.tar.gz"