wok annotate libee/receipt @ rev 24535
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 11:49:52 2022 +0000 (2022-02-23) |
parents | e66efc062996 |
children | a7524849966d |
rev | line source |
---|---|
erjo@11414 | 1 # SliTaz package receipt. |
erjo@11414 | 2 |
erjo@11414 | 3 PACKAGE="libee" |
erjo@11414 | 4 VERSION="0.3.2" |
erjo@11414 | 5 CATEGORY="system-tools" |
erjo@11414 | 6 SHORT_DESC="An Event Expression Library inspired by CEE" |
erjo@11414 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15472 | 8 LICENSE="LGPL2.1" |
pascal@24465 | 9 WEB_SITE="http://www.libee.org/" |
erjo@11414 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
erjo@11414 | 11 WGET_URL="http://www.libee.org/files/download/$TARBALL" |
erjo@11414 | 12 |
erjo@11414 | 13 DEPENDS="libestr" |
pascal@15117 | 14 BUILD_DEPENDS="libestr-dev automake" |
erjo@11414 | 15 |
pascal@24465 | 16 # What is the latest version available today? |
pascal@24465 | 17 current_version() |
pascal@24465 | 18 { |
pascal@24465 | 19 wget -O - http://www.libee.org/download/ 2>/dev/null | \ |
pascal@24465 | 20 sed '/Download file/!d;s|.*libee ||;s|<.*||' | sort -Vr | sed q |
pascal@24465 | 21 } |
pascal@24465 | 22 |
erjo@11414 | 23 # Rules to configure and make the package. |
erjo@11414 | 24 compile_rules() |
erjo@11414 | 25 { |
slaxemulator@11422 | 26 cd $src |
erjo@11414 | 27 # Patch from http://www.gossamer-threads.com/lists/rsyslog/users/4600 |
erjo@11414 | 28 patch -p 1 < $stuff/libee-build-fix.patch |
erjo@11414 | 29 ./configure $CONFIGURE_ARGS \ |
pascal@15474 | 30 --disable-testbench && make -j 1 && make install |
erjo@11414 | 31 } |
erjo@11414 | 32 |
erjo@11414 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@11414 | 34 genpkg_rules() |
erjo@11414 | 35 { |
erjo@11414 | 36 mkdir -p $fs/usr/lib |
erjo@11414 | 37 |
erjo@11414 | 38 cp -a $install/usr/lib/*.so* $fs/usr/lib |
erjo@11414 | 39 cp -a $install/usr/sbin $fs/usr |
erjo@11414 | 40 } |