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