wok-current view xfce4-notifyd/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | 6e8b1bcb30e2 |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xfce4-notifyd"
4 VERSION="0.2.2"
5 HI_VERSION=$(echo $VERSION | cut -d. -f1,2)
6 CATEGORY="development"
7 SHORT_DESC="Simple, visually-appealing notification daemon for Xfce"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="https://goodies.xfce.org/projects/applications/xfce4-notifyd"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://archive.xfce.org/src/apps/$PACKAGE/$HI_VERSION/$TARBALL"
14 DEPENDS="libxfce4ui"
15 BUILD_DEPENDS="libxfce4ui-dev libxfconf-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
21 sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure --disable-debug $CONFIGURE_ARGS && make && make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 cp -a $install/* $fs
35 }