mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 18:13:08 +02:00
27 lines
536 B
Python
Executable File
27 lines
536 B
Python
Executable File
#!/usr/bin/env modbuild
|
|
|
|
SOURCE_URL="ftp://ftp.tcl.tk/pub/tcl/tcl8_6/tcl$V-src.tar.gz"
|
|
pbuild::configure() {
|
|
case ${OS} in
|
|
Linux )
|
|
srcdir="${MODULE_SRCDIR}/unix"
|
|
;;
|
|
Darwin )
|
|
srcdir="${MODULE_SRCDIR}/macosx"
|
|
;;
|
|
esac
|
|
"${srcdir}"/configure \
|
|
--prefix="${PREFIX}" \
|
|
--bindir="${PREFIX}/sbin" \
|
|
--enable-shared=no \
|
|
|| exit 1
|
|
}
|
|
|
|
pbuild::post_install() {
|
|
{ cd "${PREFIX}"/sbin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
|
|
}
|
|
|
|
pbuild::add_to_group 'Tools'
|
|
pbuild::set_docfiles 'license.terms' 'README'
|
|
pbuild::make_all
|