summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91431e8fb8e60e0d085061e7ac9c101beac8e19d (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
# Maintainer: Simon Bachmann simonbachmann@bluewin.ch
pkgname=critcl-git
pkgver=3.1.17.r3.ed54049
pkgrel=3
pkgdesc="Critcl lets you easily embed C code in Tcl."
arch=('any')
url="http://andreas-kupries.github.io/critcl/"
license=('BSD')
groups=()
depends=('tcl' 'tcllib' 'gcc')
makedepends=('git' 'tcl>=8.5')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('critcl::git+http://github.com/andreas-kupries/critcl#branch=master')
noextract=()
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

# Git, tags available
	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"

}

build() {
	cd "$srcdir/${pkgname%-git}"
	# Only thing to build is the doc
	tclsh ./build.tcl doc > /dev/null
}

check() {
	cd "$srcdir/${pkgname%-git}"
	tclsh ./build.tcl test > /dev/null
}

package() {
	cd "$srcdir/${pkgname%-git}"
	tclsh ./build.tcl install $pkgdir/$(echo "puts [info library]" | tclsh) > /dev/null
	
	# install the doc manually
	install -m 755 -d $pkgdir/usr/share/man/mann
	install -m 444 -t $pkgdir/usr/share/man/mann ./embedded/man/files/critcl_*.n
}