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
|
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=tcl
pkgver=8.6.0
pkgrel=0
pkgdesc="The Tcl scripting language"
url="http://tcl.sourceforge.net/"
arch="all"
license="custom"
depends=
makedepends=""
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname$pkgver-src.tar.gz"
subpackages="$pkgname-doc $pkgname-dev"
build ()
{
cd "$srcdir"/tcl${pkgver}/unix
./configure --prefix=/usr \
--mandir=/usr/share/man \
--disable-64bit
make || return 1
}
package() {
cd "$srcdir"/tcl${pkgver}/unix
make INSTALL_ROOT="${pkgdir}" install install-private-headers
ln -sf tclsh8.5 "${pkgdir}"/usr/bin/tclsh
install -Dm644 ../license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
sed -i \
-e "s,^TCL_BUILD_LIB_SPEC='-L.*/unix,TCL_BUILD_LIB_SPEC='-L/usr/lib," \
-e "s,^TCL_SRC_DIR='.*',TCL_SRC_DIR='/usr/include'," \
-e "s,^TCL_BUILD_STUB_LIB_SPEC='-L.*/unix,TCL_BUILD_STUB_LIB_SPEC='-L/usr/lib," \
-e "s,^TCL_BUILD_STUB_LIB_PATH='.*/unix,TCL_BUILD_STUB_LIB_PATH='/usr/lib," \
-e "s,^TCL_LIB_FILE='libtcl8.5..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl8.5\$\{TCL_DBGX\}.so\"," \
-e "s,^TCL_CC_SEARCH_FLAGS='\(.*\)',TCL_CC_SEARCH_FLAGS='\1:/usr/lib'," \
-e "s,^TCL_LD_SEARCH_FLAGS='\(.*\)',TCL_LD_SEARCH_FLAGS='\1:/usr/lib'," \
"${pkgdir}"/usr/lib/tclConfig.sh
}
md5sums="573aa5fe678e9185ef2b3c56b24658d3 tcl8.6.0-src.tar.gz"
sha256sums="354422b9c4791685499123b2dfe01faa98b555c08906c010cb4449ddc75dcade tcl8.6.0-src.tar.gz"
sha512sums="ea64d2bb5b37b55bc424c759c67b5624e7d9a13b8bede744fd635cf668ff9e4a8681e41d94849f6c0a3564ee177268cbc3e5f287448b5a93179098d678e321f8 tcl8.6.0-src.tar.gz"
|