wok-current view stfl/receipt @ rev 25601

use gcc49-lib-base for openldap-dev
author Stanislas Leduc <shann@slitaz.org>
date Fri Sep 01 12:04:33 2023 +0000 (16 months ago)
parents ad8b9ff412d2
children
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="https://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 }