wok-6.x view ivman/receipt @ rev 24412
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 21:05:34 2022 +0000 (2022-02-09) |
parents | 10e6c72b2c15 |
children | 7dd01dedad38 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ivman"
4 VERSION="0.6.14"
5 CATEGORY="system-tools"
6 SHORT_DESC="Generic handler for HAL events."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 QPL"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://$PACKAGE.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/etc/ivman"
14 DEPENDS="hal dbus glib libxml2 zlib"
15 BUILD_DEPENDS="$DEPENDS hal-dev dbus-dev glib-dev libxml2-dev dbus-glib-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/ivman/files/ 2>/dev/null | \
21 sed '/scope="row/!d;/tar/!d;s|.*/ivman-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure --prefix=/usr --infodir=/usr/share/info \
29 --mandir=/usr/share/man --sysconfdir=/etc $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/etc $fs
39 cp -a $install/usr/bin $fs/usr
40 cp -a stuff/*.xml $fs/etc/ivman
41 sed -i s/'bash'/'sh'/ $fs/usr/bin/ivman-launch
42 }