void-packages/srcpkgs/tcl/template

48 lines
1.2 KiB
Bash

# Template file for 'tcl'
pkgname=tcl
version=8.6.14
revision=1
build_wrksrc=unix
build_style=gnu-configure
configure_args="--enable-threads --without-tzdata --enable-man-symlinks
--disable-static --disable-rpath
tcl_cv_strstr_unbroken=ok
tcl_cv_strtoul_unbroken=ok"
makedepends="zlib-devel"
short_desc="TCL scripting language"
maintainer="Orphaned <orphan@voidlinux.org>"
license="TCL"
homepage="http://www.tcl.tk"
distfiles="${SOURCEFORGE_SITE}/tcl/tcl${version}-src.tar.gz"
checksum=5880225babf7954c58d4fb0f5cf6279104ce1cd6aa9b71e9a6322540e1c4de66
shlib_provides="libtcl${version%.*}.so"
post_extract() {
rm -rf pkgs/sqlite*
rm -rf unix/pkgs/sqlite*
}
do_check() {
# thread-4.5 and thread-5* are skipped because they test UB
make test TESTFLAGS="-skip 'thread-4.5 thread-5*'"
}
do_install() {
make INSTALL_ROOT=${DESTDIR} install install-private-headers
ln -s tclsh8.6 ${DESTDIR}/usr/bin/tclsh
vlicense ../license.terms LICENSE
}
tcl-devel_package() {
depends="tcl>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/tclConfig.sh
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/share/man/man3
vmove "usr/lib/*.a"
}
}