wok view libxfconf/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 | 5dd2052058df |
children | bd7510903310 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libxfconf"
4 VERSION="4.14.1"
5 CATEGORY="development"
6 SHORT_DESC="Client library for Xfce4 configure interface."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.xfce.org/"
11 SOURCE="xfconf"
12 TARBALL="$SOURCE-$VERSION.tar.bz2"
13 WGET_URL="http://archive.xfce.org/src/xfce/$SOURCE/${VERSION%.*}/$TARBALL"
15 DEPENDS="dbus-glib libxfce4util"
16 BUILD_DEPENDS="dbus-glib-dev libxfce4util-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
22 sed '/href="/!d;/Index of/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
23 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure $CONFIGURE_ARGS &&
30 make -j 1 &&
31 make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 mkdir -p $fs/usr/share
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/lib/xfce4 $fs/usr/lib
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/share/dbus-1 $fs/usr/share
44 }