🔒 Repository is read-only – file editing is disabled.

recipes/utils/tcl/PAGBUILD.yaml main

53 linii Raw ← Powrót
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
pkgname: tcl
pkgver: '8.6.16'
pkgrel: '1'
pkgdesc: 'The Tcl scripting language'
url: 'http://www.tcl.tk/'
arch: x86_64
depends: []
makedepends:
- 'make-ca'

source:
- 'https://downloads.sourceforge.net/${pkgname}/${pkgname}${pkgver}-src.tar.gz'

sha256sums:
- SKIP

build: |
  # build package
  cd ${pkgname}${pkgver}/unix

  if [ "x86_64" = "x86_64" ]; then
  	./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit
  else
  	./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-64bit
  fi

  make
  sed -e "s#${SRCDIR}/tcl8.6.16/unix#/usr/lib#" \
      -e "s#${SRCDIR}/tcl8.6.16#/usr/include#"  \
      -i tclConfig.sh

  sed -e "s#${SRCDIR}/tcl8.6.16/unix/pkgs/tdbc1.1.10#/usr/lib/tdbc1.1.10#" \
      -e "s#${SRCDIR}/tcl8.6.16/pkgs/tdbc1.1.10/generic#/usr/include#"    \
      -e "s#${SRCDIR}/tcl8.6.16/pkgs/tdbc1.1.10/library#/usr/lib/tcl8.6#" \
      -e "s#${SRCDIR}/tcl8.6.16/pkgs/tdbc1.1.10#/usr/include#"            \
      -i pkgs/tdbc1.1.10/tdbcConfig.sh

  sed -e "s#${SRCDIR}/tcl8.6.16/unix/pkgs/itcl4.3.2#/usr/lib/itcl4.3.2#" \
      -e "s#${SRCDIR}/tcl8.6.16/pkgs/itcl4.3.2/generic#/usr/include#"    \
      -e "s#${SRCDIR}/tcl8.6.16/pkgs/itcl4.3.2#/usr/include#"            \
      -i pkgs/itcl4.3.2/itclConfig.sh

  make DESTDIR=${PKGDIR} install
  make DESTDIR=${PKGDIR} install-private-headers

  ln -svf tclsh8.6 ${PKGDIR}/usr/bin/tclsh
  chmod -v 755 ${PKGDIR}/usr/lib/libtcl8.6.so

  # Part of perl
  rm ${PKGDIR}/usr/share/man/man3/Thread.3

package: |
  true