wok annotate stfl/receipt @ rev 24657

updated icewm (1.6.4 -> 2.9.6)
author Hans-G?nter Theisgen
date Fri Mar 11 07:48:38 2022 +0100 (2022-03-11)
parents 6602a4a78b5f
children 73f36875e5a7
rev   line source
pascal@18444 1 # SliTaz package receipt.
pascal@18444 2
pascal@18444 3 PACKAGE="stfl"
pascal@18444 4 VERSION="0.24"
pascal@18444 5 CATEGORY="base-system"
pascal@18444 6 SHORT_DESC="Structured Terminal Forms Language/Library."
pascal@18444 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18444 8 LICENSE="LGPL3"
pascal@18444 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18444 10 WEB_SITE="http://www.clifford.at/stfl/"
pascal@18444 11 WGET_URL="$WEB_SITE$TARBALL"
pascal@18444 12
pascal@18446 13 BUILD_DEPENDS="ncursesw-dev swig python-dev"
pascal@18444 14
pascal@24433 15 # What is the latest version available today?
pascal@24433 16 current_version()
pascal@24433 17 {
pascal@24433 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24433 19 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24433 20 }
pascal@24433 21
pascal@18444 22 # Rules to configure and make the package.
pascal@18444 23 compile_rules()
pascal@18444 24 {
pascal@18444 25 sed -i 's|/usr/local|/usr|' Makefile.cfg
pascal@18444 26 sed -i 's|ncursesw/ncurses.h|ncurses.h|' stfl_internals.h
pascal@18444 27 sed -i 's|^include Makefile.deps|-&|' Makefile
pascal@18447 28 make -j 1 &&
pascal@18447 29 make -j 1 DESTDIR=$DESTDIR install
pascal@18444 30 }
pascal@18444 31
pascal@18444 32 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18444 33 genpkg_rules()
pascal@18444 34 {
pascal@18444 35 mkdir -p $fs/usr/lib
pascal@18444 36 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@18529 37 lib=$(cd $fs/usr/lib ; echo *.so.*.*)
pascal@18529 38 [ -e $fs/usr/lib/${lib%.*} ] ||
pascal@18529 39 ln -s $lib $fs/usr/lib/${lib%.*}
pascal@18444 40 }