* update tk to 8.6.14-2

This commit is contained in:
Alexander Baldeck 2024-04-10 18:52:27 +02:00
parent 7599cb41a2
commit 10239e4e15

View File

@ -1,48 +1,57 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Eric Bélanger <eric@archlinux.org>
pkgname=tk
pkgver=8.6.13
pkgver=8.6.14
pkgrel=2
pkgdesc="A windowing toolkit for use with tcl"
pkgdesc='A windowing toolkit for use with tcl'
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="http://tcl.sourceforge.net/"
license=('custom')
depends=('tcl' 'libxss' 'libxft')
options=('staticlibs')
source=(https://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz)
sha256sums=('2e65fa069a23365440a3c56c556b8673b5e32a283800d8d9b257e3f584ce0675')
license=(TCL)
depends=(tcl
libxss
libxft)
options=(staticlibs)
_archive="$pkgname$pkgver"
source=("https://downloads.sourceforge.net/sourceforge/tcl/$_archive-src.tar.gz")
sha256sums=('8ffdb720f47a6ca6107eac2dd877e30b0ef7fac14f3a84ebbd0b3612cee41a94')
build() {
cd tk$pkgver/unix
./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-rpath --enable-64bit
make
cd "$_archive/unix"
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-threads \
--disable-rpath \
--enable-64bit
make
}
check() {
cd tk$pkgver/unix
# make test
cd "$_archive/unix"
# make test
}
package() {
cd tk$pkgver/unix
make INSTALL_ROOT="${pkgdir}" install install-private-headers
ln -sf wish${pkgver%.*} "${pkgdir}/usr/bin/wish"
ln -sf libtk${pkgver%.*}.so "${pkgdir}/usr/lib/libtk.so"
install -Dm644 license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cd "$_archive/unix"
make INSTALL_ROOT="$pkgdir" install install-private-headers
ln -sf wish${pkgver%.*} "$pkgdir/usr/bin/wish"
ln -sf libtk${pkgver%.*}.so "$pkgdir/usr/lib/libtk.so"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" license.terms
# install private headers (FS#14388, FS#47616)
cd ..
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 private headers (FS#14388, FS#47616)
cd ..
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
# 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"
# remove buildroot traces
sed -e "s#$srcdir/$_archive/unix#/usr/lib#" \
-e "s#$srcdir/$_archive#/usr/include#" \
-i "$pkgdir/usr/lib/tkConfig.sh"
# remove unrequired execute permissions (FS#75042)
chmod -x "${pkgdir}/usr/lib/libtkstub8.6.a"
# remove unrequired execute permissions (FS#75042)
chmod -x "$pkgdir/usr/lib/libtkstub8.6.a"
}