blob: 6143fde613383f44f5f4aacf1917d849a0289745 (
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
52
53
54
55
56
57
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=tcl-fossil
pkgver=r35251.8e538cb
pkgrel=1
pkgdesc="The Tcl scripting language"
arch=('i686' 'x86_64')
url="https://www.tcl.tk/"
license=('custom')
depends=('glibc' 'zlib')
makedepends=('fossil')
provides=("tcl=$pkgver")
conflicts=('tcl')
options=('staticlibs')
source=("fossil+https://core.tcl-lang.org/tcl")
sha256sums=('SKIP')
pkgver() {
cd "tcl"
_info=$(fossil info)
_hash=$(echo "$_info" | sed -n 's|checkout: *\([0-9a-z]*\).*|\1|p' | cut -c 1-7)
_revision=$(echo "$_info" | sed -n 's|check-ins: *\(.*\)|\1|p')
printf "r%s.%s" "$_revision" "$_hash"
}
build() {
cd "tcl/unix"
./configure \
--prefix="/usr" \
--enable-64bit
make
}
check() {
cd "tcl"
make -C "unix" test
}
package() {
cd "tcl"
make \
DESTDIR="$pkgdir" \
-C "unix" \
install \
install-private-headers
ln -sf tclsh${*} "$pkgdir/usr/bin/tclsh"
ln -sf libtcl${*}.so "${pkgdir}/usr/lib/libtcl.so"
install -Dm644 "unix/tcl.m4" -t "$pkgdir/usr/share/aclocal"
install -Dm644 "license.terms" -t "$pkgdir/usr/share/licenses/tcl"
}
|