1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Miguel Revilla <yo@miguelrevilla.com>
3 # Contributor: Eric BĂ©langer <eric@archlinux.org>
8 pkgdesc='The Tcl scripting language'
10 url=http://tcl.sourceforge.net/
18 source=(https://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz)
19 b2sums=('f7d895ee04bf2be2a327a957189a8a4400afae13d065163c4c7b6b5ee909bae2352114843d82d9475046eafd3d288da2c1649fe6285fdb26eb22f0b97e4227ab')
30 export LDFLAGS+=" -lm"
31 export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
35 --mandir=/usr/share/man \
43 make INSTALL_ROOT="${pkgdir}" install install-private-headers
44 rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
45 find "${pkgdir}" -type f -name '*.a' -delete
46 ln -sf libtcl${pkgver%.*}.so "${pkgdir}"/usr/lib32/libtcl.so
48 sed -e "s#${srcdir}/tcl${pkgver}/unix#/usr/lib32#" \
49 -e "s#${srcdir}/tcl${pkgver}#/usr/include#" \
50 -i "${pkgdir}/usr/lib32/tclConfig.sh"
53 sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/tdbc${tdbcver}#/usr/lib32/tdbc${tdbcver}#" \
54 -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc${tdbcver}/generic#/usr/include#" \
55 -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc${tdbcver}/library#/usr/lib32/tcl${pkgver%.*}#" \
56 -e "s#${srcdir}/tcl${pkgver}/pkgs/tdbc${tdbcver}#/usr/include#" \
57 -i "${pkgdir}/usr/lib32/tdbc${tdbcver}/tdbcConfig.sh"
60 sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/itcl${ictlver}#/usr/lib32/${ictlver}#" \
61 -e "s#${srcdir}/tcl${pkgver}/pkgs/itcl${ictlver}/generic#/usr/include#" \
62 -e "s#${srcdir}/tcl${pkgver}/pkgs/itcl${ictlver}#/usr/include#" \
63 -i "${pkgdir}/usr/lib32/itcl${ictlver}/itclConfig.sh"
65 install -dm 755 -p "${pkgdir}"/usr/share/licenses
66 ln -s tcl "${pkgdir}"/usr/share/licenses/lib32-tcl