You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.8KB

  1. # Maintainer: Eric Bélanger <eric@archlinux.org>
  2. pkgname=tcl
  3. pkgver=8.6.9
  4. pkgrel=2
  5. pkgdesc="The Tcl scripting language"
  6. arch=('x86_64')
  7. url="http://tcl.sourceforge.net/"
  8. license=('custom')
  9. depends=('zlib')
  10. options=('staticlibs')
  11. source=(http://downloads.sourceforge.net/sourceforge/tcl/tcl${pkgver}-src.tar.gz)
  12. sha256sums=('ad0cd2de2c87b9ba8086b43957a0de3eb2eb565c7159d5f53ccbba3feb915f4e')
  13. prepare() {
  14. cd tcl${pkgver}
  15. # we build the tcl sqlite interface in sqlite-tcl package
  16. rm -rf pkgs/sqlite3*
  17. }
  18. build() {
  19. cd tcl${pkgver}/unix
  20. ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit
  21. make
  22. }
  23. check() {
  24. cd tcl${pkgver}/unix
  25. make test
  26. }
  27. package() {
  28. cd tcl${pkgver}/unix
  29. make INSTALL_ROOT="${pkgdir}" install install-private-headers
  30. ln -sf tclsh${pkgver%.*} "${pkgdir}/usr/bin/tclsh"
  31. ln -sf libtcl${pkgver%.*}.so "${pkgdir}/usr/lib/libtcl.so"
  32. install -Dm644 ../license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  33. install -Dm644 tcl.m4 -t "$pkgdir"/usr/share/aclocal
  34. # remove buildroot traces
  35. sed -e "s#${srcdir}/tcl${pkgver}/unix#/usr/lib#" \
  36. -e "s#${srcdir}/tcl${pkgver}#/usr/include#" \
  37. -i "${pkgdir}/usr/lib/tclConfig.sh"
  38. tdbcver=tdbc1.1.0
  39. sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/$tdbcver#/usr/lib/$tdbcver#" \
  40. -e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver/generic#/usr/include#" \
  41. -e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver/library#/usr/lib/tcl${pkgver%.*}#" \
  42. -e "s#${srcdir}/tcl${pkgver}/pkgs/$tdbcver#/usr/include#" \
  43. -i "${pkgdir}/usr/lib/$tdbcver/tdbcConfig.sh"
  44. itclver=itcl4.1.2
  45. sed -e "s#${srcdir}/tcl${pkgver}/unix/pkgs/$itclver#/usr/lib/$itclver#" \
  46. -e "s#${srcdir}/tcl${pkgver}/pkgs/$itclver/generic#/usr/include#" \
  47. -e "s#${srcdir}/tcl${pkgver}/pkgs/$itclver#/usr/include#" \
  48. -i "${pkgdir}/usr/lib/$itclver/itclConfig.sh"
  49. }