aboutsummaryrefslogtreecommitdiffstats
path: root/community/tcllib/APKBUILD
blob: 1845f7c7a10e37e60d08452493e1bdfc34bdcb1d (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
# Contributor: tcely <tcllib+aports@tcely.33mail.com>
# Maintainer:
pkgname=tcllib
pkgver=1.20
pkgrel=0
pkgdesc="Tcl Standard Library"
url="https://core.tcl.tk/tcllib"
arch="noarch"
license="TCL"
depends="tcl"
makedepends="tcl-dev"
subpackages="$pkgname-doc"
source="https://core.tcl.tk/tcllib/uv/tcllib-$pkgver.tar.xz"

case "$CARCH" in
mips*)	options="!check";;	# tests take forever on mips
esac

build() {
	./configure \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

check() {
	sed -i \
		-e '/UP 1 CALL {::hook::call/s/::hook::call/call/' \
		modules/hook/hook.test
	sed -i \
		-e '/::string::token::shell/s/::string::token::shell/shell/' \
		modules/string/token_shell.test

	# set user because the tcllib tests use this value
	USER=${USER:-$(id -un)} make test_batch
}

sha512sums="d2c20642f91cdc7bf3b329025be80eb9288d0919fa439c2066349b52950cf3c343f39c7745b9b08ec28a884ff2f219fe0fb5f47023f1266b6a6de6ae54852412  tcllib-1.20.tar.xz"