2011-07-25 04:38:45 +08:00
|
|
|
|
|
|
|
pkgname=tk
|
2015-05-26 06:08:59 +08:00
|
|
|
pkgver=8.6.4
|
2016-02-14 09:38:09 +08:00
|
|
|
pkgrel=2
|
2011-07-25 04:38:45 +08:00
|
|
|
pkgdesc="A windowing toolkit for use with tcl"
|
2013-01-08 11:53:27 +08:00
|
|
|
arch=('x86_64')
|
2011-07-25 04:38:45 +08:00
|
|
|
url="http://tcl.sourceforge.net/"
|
|
|
|
license=('custom')
|
2016-02-14 09:38:09 +08:00
|
|
|
depends=("tcl=${pkgver}" 'libxss' 'libxft' 'graphite')
|
2014-02-15 05:29:38 +08:00
|
|
|
options=('staticlibs')
|
2011-11-09 05:17:02 +08:00
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/tcl/${pkgname}${pkgver}-src.tar.gz")
|
2015-05-26 06:08:59 +08:00
|
|
|
sha1sums=('ad24c59ac2e7453d1ed2bad0d7d18a01eabc5226')
|
2011-11-09 05:17:02 +08:00
|
|
|
|
2011-07-25 04:38:45 +08:00
|
|
|
build() {
|
2011-11-09 05:17:02 +08:00
|
|
|
cd "${srcdir}/${pkgname}${pkgver}/unix"
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--enable-threads \
|
|
|
|
--enable-xft \
|
2013-01-08 11:53:27 +08:00
|
|
|
--enable-64bit
|
2011-07-25 04:38:45 +08:00
|
|
|
|
|
|
|
make
|
2011-11-09 05:17:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}${pkgver}/unix"
|
|
|
|
|
|
|
|
make INSTALL_ROOT="${pkgdir}" install install-private-headers
|
2013-01-08 11:53:27 +08:00
|
|
|
ln -sf "wish8.6" "${pkgdir}/usr/bin/wish"
|
2014-02-15 05:29:38 +08:00
|
|
|
ln -sf libtk${pkgver%.*}.so "${pkgdir}/usr/lib/libtk.so"
|
2011-07-25 04:38:45 +08:00
|
|
|
|
|
|
|
# install license
|
2011-11-09 05:17:02 +08:00
|
|
|
install -Dm644 license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2011-07-25 04:38:45 +08:00
|
|
|
|
2014-02-15 05:29:38 +08:00
|
|
|
# remove buildroot traces
|
|
|
|
sed -e "s#${srcdir}/tk${pkgver}/unix#/usr/lib#" \
|
|
|
|
-e "s#${srcdir}/tk${pkgver}#/usr/include#" \
|
|
|
|
-i "${pkgdir}/usr/lib/tkConfig.sh"
|
2011-07-25 04:38:45 +08:00
|
|
|
}
|
2011-11-09 05:17:02 +08:00
|
|
|
|