Commit 7b6e0361 authored by Leo's avatar Leo
Browse files

main/tk: upgrade to 8.6.10

parent 7d7eb93b
Pipeline #3004 passed with stages
in 2 minutes and 33 seconds
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=tk
pkgver=8.6.9
pkgver=8.6.10
pkgrel=0
pkgdesc="GUI toolkit for the Tcl scripting language"
url="http://tcl.sourceforge.net/"
arch="all"
options="!check" # Requires a running X11 server.
license="TCL"
depends=
depends_dev="tcl-dev libx11-dev libxft-dev fontconfig-dev"
makedepends="$depends_dev libpng-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="https://downloads.sourceforge.net/sourceforge/tcl/$pkgname$pkgver-src.tar.gz
source="https://downloads.sourceforge.net/sourceforge/tcl/tk$pkgver-src.tar.gz
"
_major=${pkgver%.*}
builddir="$srcdir"/tk${pkgver}/unix
builddir="$srcdir"/tk$pkgver/unix
build() {
local _64bit="--disable-64bit"
......@@ -23,7 +22,6 @@ build() {
x86_64) _64bit="--enable-64bit";;
esac
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -34,20 +32,19 @@ build() {
}
package() {
cd "$builddir"
export LD_LIBRARY_PATH="$builddir"
make -j1 INSTALL_ROOT="${pkgdir}" install install-private-headers
make -j1 INSTALL_ROOT="$pkgdir" install install-private-headers
ln -sf wish${_major} "${pkgdir}"/usr/bin/wish
ln -sf wish${_major} "$pkgdir"/usr/bin/wish
install -Dm644 ../license.terms \
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
$pkgdir/usr/share/licenses/$pkgname/LICENSE
# remove buildroot traces
find "$pkgdir" -name '*Config.sh' | xargs sed -i -e "s#${srcdir}#/usr/src#"
# move demos to -doc directory
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples/
mv "$pkgdir"/usr/lib/tk${_major}/demos/ \
mv "$pkgdir"/usr/lib/tk$_major/demos/ \
"$pkgdir"/usr/share/doc/$pkgname/examples/
}
......@@ -60,4 +57,4 @@ dev() {
done
}
sha512sums="654d73aad006e628110057681477b958b7ec0a42287bc78259fb4b84635e7ebe757e69099d66c0c73479bc506ca66fa5baf13f13b0f403d60b2c54fd48a4a686 tk8.6.9-src.tar.gz"
sha512sums="d12ef3a5bde9e10209a24e9f978bd23360a979d8fa70a859cf750a79ca51067a11ef6df7589303b52fe2a2baed4083583ddaa19e2c7cb433ea523639927f1be5 tk8.6.10-src.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment