void-packages/srcpkgs/tk/template
2021-01-19 22:03:50 -03:00

39 lines
1.2 KiB
Bash

# Template file for 'tk'
pkgname=tk
version=8.6.11
revision=1
wrksrc="tk${version}"
build_wrksrc=unix
build_style=gnu-configure
configure_args="--enable-threads --without-tzdata --enable-man-symlinks
--disable-static --disable-rpath --with-tcl=$XBPS_CROSS_BASE/usr/lib
tk_cv_strtod_unbroken=ok LIBS=-ltcl8.6"
hostmakedepends="pkg-config"
makedepends="zlib-devel tcl-devel libXext-devel libXScrnSaver-devel libXft-devel"
short_desc="TK graphical user interface toolkit for TCL"
maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:TCL"
homepage="http://www.tcl.tk"
distfiles="${SOURCEFORGE_SITE}/tcl/${pkgname}${version}-src.tar.gz"
checksum=5228a8187a7f70fa0791ef0f975270f068ba9557f57456f51eb02d9d4ea31282
shlib_provides="libtk8.6.so"
do_install() {
make INSTALL_ROOT=${DESTDIR} install install-private-headers
ln -s $(basename ${DESTDIR}/usr/bin/wish*) ${DESTDIR}/usr/bin/wish
vlicense ../license.terms LICENSE
}
tk-devel_package() {
depends="${makedepends} tk>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/tkConfig.sh
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove usr/share/man/man3
vmove usr/share/man/mann
}
}