mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
# $Id: PKGBUILD 36913 2009-04-28 13:33:52Z allan $
|
|
# Maintainer: Allan McRae <allan@archlinux.org>
|
|
# Contributor: Judd Vinet <jvinet@zeroflux.org>
|
|
|
|
pkgname=tk
|
|
pkgver=8.5.7
|
|
pkgrel=1
|
|
pkgdesc="A windowing toolkit for use with tcl"
|
|
arch=(arm)
|
|
url="http://tcl.sourceforge.net/"
|
|
license=('custom')
|
|
depends=("tcl=${pkgver}" 'libxss' 'libxft')
|
|
source=(http://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz)
|
|
md5sums=('0764f63ae2106b4774c4ecb0ef391610')
|
|
|
|
build() {
|
|
cd ${srcdir}/tk${pkgver}/unix
|
|
if [ "$CARCH" = "x86_64" ]; then
|
|
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --enable-64bit
|
|
elif [ "$CARCH" = "arm" ]; then
|
|
./configure --prefix=/usr --mandir=/usr/share/man --disable-threads --disable-64bit
|
|
else
|
|
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-64bit
|
|
fi
|
|
|
|
make
|
|
make INSTALL_ROOT=${pkgdir} install install-private-headers
|
|
ln -sf wish8.5 ${pkgdir}/usr/bin/wish
|
|
|
|
# install private headers (FS#14388)
|
|
cd ${srcdir}/tk${pkgver}
|
|
for dir in compat generic generic/ttk unix; do
|
|
install -dm755 ${pkgdir}/usr/include/tk-private/$dir
|
|
install -m644 -t ${pkgdir}/usr/include/tk-private/$dir $dir/*.h
|
|
done
|
|
|
|
# install license
|
|
install -Dm644 license.terms ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
|
|
|
|
# remove buildroot traces / fixes #3602
|
|
sed -i \
|
|
-e "s,^TK_BUILD_LIB_SPEC='-L.*/unix,TK_BUILD_LIB_SPEC='-L/usr/lib," \
|
|
-e "s,^TK_SRC_DIR='.*',TK_SRC_DIR='/usr/include'," \
|
|
-e "s,^TK_BUILD_STUB_LIB_SPEC='-L.*/unix,TK_BUILD_STUB_LIB_SPEC='-L/usr/lib," \
|
|
-e "s,^TK_BUILD_STUB_LIB_PATH='.*/unix,TK_BUILD_STUB_LIB_PATH='/usr/lib," \
|
|
${pkgdir}/usr/lib/tkConfig.sh
|
|
}
|