Created
September 9, 2021 07:16
-
-
Save ZoomTen/54e9335424e9d46d9f36fd10404ab47b to your computer and use it in GitHub Desktop.
pkgbuild for tk 8.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=tk84 | |
pkgver=8.4.20 | |
_pkgver=8.4.20 | |
pkgrel=1 | |
pkgdesc="A windowing toolkit for use with tcl" | |
arch=('x86_64') | |
url="http://tcl.sourceforge.net/" | |
license=('custom') | |
depends=('tcl84' 'libxss' 'libxft') | |
options=('staticlibs') | |
source=(https://downloads.sourceforge.net/sourceforge/tcl/tk${pkgver}-src.tar.gz) | |
sha256sums=('SKIP') | |
build() { | |
cd tk$_pkgver/unix | |
./configure --prefix=/usr --mandir=/usr/share/man \ | |
--with-tcl=/usr/lib/tcl8.4 --includedir=/usr/include/tk8.4 \ | |
--enable-threads --disable-rpath --enable-64bit | |
make CFLAGS="-I/usr/include/tcl8.4" | |
} | |
check() { | |
cd tk$_pkgver/unix | |
# make test | |
} | |
package() { | |
cd tk$_pkgver/unix | |
make INSTALL_ROOT="${pkgdir}" install install-private-headers | |
ln -sf libtk${_pkgver%.*}.so "${pkgdir}/usr/lib/libtk8.4.so.0" | |
install -Dm644 license.terms "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
rm -r ${pkgdir}/usr/share/man | |
# 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" | |
rm -r ${pkgdir}/usr/lib/tk8.4/demos | |
mv ${pkgdir}/usr/lib/tkConfig.sh ${pkgdir}/usr/lib/tk8.4/tkConfig.sh | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment