wok-current annotate sylfilter/receipt @ rev 24462
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 21:07:01 2022 +0000 (2022-02-16) |
parents | de5eaf45ff17 |
children | 73f36875e5a7 |
rev | line source |
---|---|
pankso@19547 | 1 # SliTaz package receipt. |
pankso@19547 | 2 |
pankso@19547 | 3 PACKAGE="sylfilter" |
pankso@19547 | 4 VERSION="0.8" |
pankso@19547 | 5 CATEGORY="network" |
pankso@19547 | 6 SHORT_DESC="SylFilter is a light message filter library and command-line tools." |
pankso@19547 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@19547 | 8 LICENSE="BSD" |
pankso@19547 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@19547 | 10 WEB_SITE="http://sylpheed.sraoss.jp/sylfilter/" |
pankso@19547 | 11 WGET_URL="http://sylpheed.sraoss.jp/sylfilter/src/$TARBALL" |
pankso@19547 | 12 TAGS="mail email filter spam" |
pankso@19547 | 13 |
pankso@19547 | 14 DEPENDS="sqlite" |
pankso@19547 | 15 BUILD_DEPENDS="sqlite-dev" |
pankso@19547 | 16 |
pascal@24462 | 17 # What is the latest version available today? |
pascal@24462 | 18 current_version() |
pascal@24462 | 19 { |
pascal@24462 | 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24462 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24462 | 22 } |
pascal@24462 | 23 |
pankso@19547 | 24 # Rules to configure and make the package. |
pankso@19547 | 25 compile_rules() |
pankso@19547 | 26 { |
pascal@19548 | 27 sed -i 's|config.rpath.*|& 2>/dev/null|' configure # hide trigger |
pankso@19547 | 28 ./configure \ |
pankso@19547 | 29 --prefix=/usr \ |
pankso@19547 | 30 $CONFIGURE_ARGS && |
pankso@19547 | 31 make && make install |
pankso@19547 | 32 } |
pankso@19547 | 33 |
pankso@19547 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@19547 | 35 genpkg_rules() |
pankso@19547 | 36 { |
pankso@19547 | 37 mkdir -p $fs/usr/lib |
pankso@19547 | 38 cp -a $install/usr/bin $fs/usr |
pankso@19547 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@19547 | 40 } |