65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
pkgname=tcl
|
|
pkgver=8.6.14
|
|
pkgdesc='Powerful, easy-to-learn dynamic programming language'
|
|
homepage='http://tcl.sourceforge.net/'
|
|
license=(TCL)
|
|
_archive="$pkgname$pkgver"
|
|
sources=("${_archive}-src.tar.gz"
|
|
"${_archive}-html.tar.gz"
|
|
)
|
|
urls=("https://downloads.sourceforge.net/sourceforge/tcl/$_archive-src.tar.gz"
|
|
"https://downloads.sourceforge.net/sourceforge/tcl/$_archive-html.tar.gz"
|
|
)
|
|
md5sums=("c30b57c6051be28fa928d09aca82841e"
|
|
"5467198f8d57c54835bf80b98ffb0170"
|
|
)
|
|
|
|
|
|
src_prepare() {
|
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
SRCDIR=$(pwd)
|
|
cd unix
|
|
./configure --prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
--disable-rpath
|
|
make
|
|
|
|
sed -e "s|$SRCDIR/unix|/usr/lib|" \
|
|
-e "s|$SRCDIR|/usr/include|" \
|
|
-i tclConfig.sh
|
|
|
|
sed -e "s|$SRCDIR/unix/pkgs/tdbc1.1.7|/usr/lib/tdbc1.1.7|" \
|
|
-e "s|$SRCDIR/pkgs/tdbc1.1.7/generic|/usr/include|" \
|
|
-e "s|$SRCDIR/pkgs/tdbc1.1.7/library|/usr/lib/tcl8.6|" \
|
|
-e "s|$SRCDIR/pkgs/tdbc1.1.7|/usr/include|" \
|
|
-i pkgs/tdbc1.1.7/tdbcConfig.sh
|
|
|
|
sed -e "s|$SRCDIR/unix/pkgs/itcl4.2.4|/usr/lib/itcl4.2.4|" \
|
|
-e "s|$SRCDIR/pkgs/itcl4.2.4/generic|/usr/include|" \
|
|
-e "s|$SRCDIR/pkgs/itcl4.2.4|/usr/include|" \
|
|
-i pkgs/itcl4.2.4/itclConfig.sh
|
|
|
|
unset SRCDIR
|
|
}
|
|
|
|
src_check() {
|
|
cd "${srcdir}/unix"
|
|
make test
|
|
}
|
|
|
|
src_install() {
|
|
cd "${srcdir}/unix"
|
|
make INSTALL_ROOT="${pkgdir}" install install-private-headers
|
|
chmod -v u+w "${pkgdir}/usr/lib/libtcl8.6.so"
|
|
ln -sfv tclsh8.6 "${pkgdir}/usr/bin/tclsh"
|
|
mv "${pkgdir}"/usr/share/man/man3/{Thread,Tcl_Thread}.3
|
|
|
|
cd ..
|
|
tar -xf ${distdir}/${sources[1]} --strip-components=1
|
|
mkdir -v -p "${pkgdir}/usr/share/doc/tcl-8.6.14"
|
|
cp -v -r ./html/* "${pkgdir}/usr/share/doc/tcl-8.6.14"
|
|
}
|