[arch-commits] Commit in tk/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Antonio Rojas
arojas at gemini.archlinux.org
Sat Nov 6 23:16:43 UTC 2021
Date: Saturday, November 6, 2021 @ 23:16:42
Author: arojas
Revision: 427429
archrelease: copy trunk to staging-x86_64
Added:
tk/repos/staging-x86_64/
tk/repos/staging-x86_64/PKGBUILD
(from rev 427428, tk/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: tk/repos/staging-x86_64/PKGBUILD (from rev 427428, tk/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2021-11-06 23:16:42 UTC (rev 427429)
@@ -0,0 +1,44 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=tk
+pkgver=8.6.12
+pkgrel=1
+pkgdesc="A windowing toolkit for use with tcl"
+arch=('x86_64')
+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=('12395c1f3fcb6bed2938689f797ea3cdf41ed5cb6c4766eec8ac949560310630')
+
+build() {
+ cd tk$pkgver/unix
+ ./configure --prefix=/usr --mandir=/usr/share/man --enable-threads --disable-rpath --enable-64bit
+ make
+}
+
+check() {
+ cd tk$pkgver/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"
+
+ # 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"
+}
More information about the arch-commits
mailing list