wok-current annotate stfl/receipt @ rev 25540
Update some web_site/wget_url with https
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 09 18:12:54 2023 +0000 (20 months ago) |
parents | ad8b9ff412d2 |
children |
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@25540 | 10 WEB_SITE="https://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 } |