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