30 lines
533 B
Plaintext
Executable File
30 lines
533 B
Plaintext
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="${SRC_DIR}/unix"
|
|
;;
|
|
Darwin )
|
|
srcdir="${SRC_DIR}/macosx"
|
|
;;
|
|
esac
|
|
"${srcdir}"/configure \
|
|
--prefix="${PREFIX}" \
|
|
--enable-shared=no \
|
|
|| exit 1
|
|
}
|
|
|
|
pbuild::post_install() {
|
|
{ cd "${PREFIX}"/bin && rm -f tclsh && ln -fs tclsh${V%.*} tclsh; };
|
|
}
|
|
|
|
# use system's cc
|
|
declare CC=cc
|
|
|
|
pbuild::add_to_group 'Programming'
|
|
pbuild::set_docfiles 'license.terms' 'README'
|
|
pbuild::make_all
|