wok view tklauncher/receipt @ rev 25690

mmv: inserted current_version()
author Hans-G?nter Theisgen
date Mon Apr 15 15:20:24 2024 +0100 (6 months ago)
parents 505d1daeed6c
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tklauncher"
4 VERSION="0.32"
5 CATEGORY="x-window"
6 SHORT_DESC="TkLauncher desktop launcher"
7 MAINTAINER="pasquale_frega@tiscali.it"
8 LICENSE="BSD"
9 WEB_SITE="https://wiki.tcl-lang.org/page/TkLauncher"
10 TAGS="amiwm AmiDock Amiga"
11 SUGGESTED="amiwm"
12 CONFIG_FILES="/etc/tklauncher"
14 TARBALL="$PACKAGE-$VERSION.tar.gz"
15 WGET_URL="https://download-mirror.savannah.gnu.org/releases/$PACKAGE/$TARBALL"
17 DEPENDS="tcl tk libtkimg"
18 BUILD_DEPENDS="tcl-dev tk-dev libtkimg-dev tcl2c"
20 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - http://web.tiscali.it/pas80/tklauncher.htm 2>/dev/null | \
24 sed '/(v[0-9]/!d;s|.*v||;s|).*||;q'
25 }
27 compile_rules() {
28 sed -i 's|/usr/local|/usr|; s|8\.5|8.6|g' Makefile
30 tcl2c -o tklauncher.c tklauncher.tcl -tcl -tk &&
31 make &&
32 make INSTALLDIR=$install/usr install || return 1
34 chmod 755 $install/usr/lib/amiwm/TkLauncher # was 751
35 mkdir -p $install/usr/share/doc
36 cp README LICENSE $install/usr/share/doc
37 }
39 genpkg_rules() {
40 mkdir -p $fs/usr/share $fs/etc
41 cp -a $install/usr/bin $install/usr/lib $fs/usr
42 cp -a $install/usr/share/tklauncher $fs/etc
43 ln -s /etc/tklauncher $fs/usr/share/tklauncher
44 }