archrelease: copy trunk to extra-x86_64
[arch-packages.git] / tk / repos / extra-x86_64 / PKGBUILD
blobb6f99198c80a912569ec0931754df9cb57f3c0a9
1 # Maintainer: Eric BĂ©langer <eric@archlinux.org>
3 pkgname=tk
4 pkgver=8.6.13
5 pkgrel=1
6 pkgdesc="A windowing toolkit for use with tcl"
7 arch=('x86_64')
8 url="http://tcl.sourceforge.net/"
9 license=('custom')
10 depends=('tcl' 'libxss' 'libxft')
11 options=('staticlibs')
12 source=(https://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz)
13 sha256sums=('2e65fa069a23365440a3c56c556b8673b5e32a283800d8d9b257e3f584ce0675')
15 build() {
16   cd tk$pkgver/unix
17   ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-rpath --enable-64bit
18   make
21 check() {
22   cd tk$pkgver/unix
23 #  make test
26 package() {
27   cd tk$pkgver/unix
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)
34   cd ..
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
38   done
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"