wok annotate stfl/receipt @ rev 20045
Improvements
author | Leonardo Laporte <hackdorte@yandex.com> |
---|---|
date | Thu Aug 31 04:02:39 2017 -0300 (2017-08-31) |
parents | c881bf75f1ab |
children | ad8b9ff412d2 |
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@18444 | 15 # Rules to configure and make the package. |
pascal@18444 | 16 compile_rules() |
pascal@18444 | 17 { |
pascal@18444 | 18 sed -i 's|/usr/local|/usr|' Makefile.cfg |
pascal@18444 | 19 sed -i 's|ncursesw/ncurses.h|ncurses.h|' stfl_internals.h |
pascal@18444 | 20 sed -i 's|^include Makefile.deps|-&|' Makefile |
pascal@18447 | 21 make -j 1 && |
pascal@18447 | 22 make -j 1 DESTDIR=$DESTDIR install |
pascal@18444 | 23 } |
pascal@18444 | 24 |
pascal@18444 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18444 | 26 genpkg_rules() |
pascal@18444 | 27 { |
pascal@18444 | 28 mkdir -p $fs/usr/lib |
pascal@18444 | 29 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@18529 | 30 lib=$(cd $fs/usr/lib ; echo *.so.*.*) |
pascal@18529 | 31 [ -e $fs/usr/lib/${lib%.*} ] || |
pascal@18529 | 32 ln -s $lib $fs/usr/lib/${lib%.*} |
pascal@18444 | 33 } |