1.9. tmp tcl-8.6.10
#!/bin/sh # Copyright © 1999-2020 Gerard Beekmans # Copyright © 2017-2020 Random Crew # Distributed under the terms of MIT License. MY_P="tcl${PV}-src"
Additional source handling
The directory inside source archive is named as tcl1.2.3 instead of standard tcl-1.2.3. We need to move to that directory explicitly.
src_postfetch() { cd ${WORKDIR}/tcl${PV} }
Configuration
src_config() { cd unix ./configure \ --prefix=${PREFIX} }
Compilation
src_compile() { make ${MAKEOPTS} }
Installation
src_install() { make install ${MAKEOPTS} DESTDIR=${D} chmod u+w ${D}${PREFIX}/lib/libtcl8.6.so make install-private-headers ${MAKEOPTS} DESTDIR=${D} ln -s tclsh8.6 ${D}${PREFIX}/bin/tclsh }
Unit testing
src_check() { TZ=UTC make test }
Links