wok annotate tcl2c/receipt @ rev 24891
lynx: use ncursesw (tanks ceel)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 07 07:20:18 2022 +0000 (2022-04-07) |
parents | 013bad3709d7 |
children | 7dd01dedad38 |
rev | line source |
---|---|
pascal@20387 | 1 # SliTaz package receipt v2. |
pascal@20387 | 2 |
pascal@20387 | 3 PACKAGE="tcl2c" |
pascal@20387 | 4 VERSION="2016.4" |
pascal@20387 | 5 CATEGORY="development" |
pascal@20387 | 6 SHORT_DESC="Create a C file from Tcl file for C compiler" |
pascal@20387 | 7 MAINTAINER="al.bobylev@gmail.com" |
pascal@20387 | 8 LICENSE="GPL2" |
pascal@20387 | 9 WEB_SITE="http://tcl2c.sourceforge.net/" |
pascal@20387 | 10 |
pascal@20387 | 11 TARBALL="$PACKAGE.$VERSION.zip" |
pascal@20387 | 12 WGET_URL="$SF_MIRROR/tcl2c/$TARBALL" |
pascal@20387 | 13 |
pascal@20387 | 14 DEPENDS="tcl" |
pascal@20387 | 15 BUILD_DEPENDS="tcl-dev" |
pascal@20387 | 16 |
pascal@24340 | 17 # What is the latest version available today? |
pascal@24340 | 18 current_version() |
pascal@24340 | 19 { |
pascal@24340 | 20 wget -O - https://sourceforge.net/projects/tcl2c/files/ 2>/dev/null | \ |
pascal@24340 | 21 sed '/scope="row/!d;s|.*/tcl2c\.||;s|.zip.*||;q' |
pascal@24340 | 22 } |
pascal@24340 | 23 |
pascal@20387 | 24 compile_rules() { |
pascal@20387 | 25 cd generic |
pascal@20387 | 26 sed -i 's|libtcl8\.5\.so|-ltcl8.6|' makefile |
pascal@20387 | 27 patch -p1 < $stuff/tcl2c.u |
pascal@20387 | 28 |
pascal@20387 | 29 make linux && |
pascal@20387 | 30 install -Dm755 tcl2c $install/usr/bin/tcl2c |
pascal@20387 | 31 } |
pascal@20387 | 32 |
pascal@20387 | 33 genpkg_rules() { |
pascal@20387 | 34 cp -a $install/usr $fs |
pascal@20387 | 35 } |