1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
6 pkgdesc="A windowing toolkit for use with tcl"
8 url="http://tcl.sourceforge.net/"
10 depends=('tcl' 'libxss' 'libxft')
11 options=('staticlibs')
12 source=(https://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz)
13 sha256sums=('2e65fa069a23365440a3c56c556b8673b5e32a283800d8d9b257e3f584ce0675')
17 ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-rpath --enable-64bit
28 make INSTALL_ROOT="${pkgdir}" install install-private-headers
29 ln -sf wish${pkgver%.*} "${pkgdir}/usr/bin/wish"
30 ln -sf libtk${pkgver%.*}.so "${pkgdir}/usr/lib/libtk.so"
31 install -Dm644 license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
33 # install private headers (FS#14388, FS#47616)
35 for dir in compat generic generic/ttk unix; do
36 install -dm755 "${pkgdir}"/usr/include/tk-private/$dir
37 install -m644 -t "${pkgdir}"/usr/include/tk-private/$dir $dir/*.h
40 # remove buildroot traces
41 sed -e "s#${srcdir}/tk${pkgver}/unix#/usr/lib#" \
42 -e "s#${srcdir}/tk${pkgver}#/usr/include#" \
43 -i "${pkgdir}/usr/lib/tkConfig.sh"