wok view exo/receipt @ rev 24427

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 12 11:42:56 2022 +0000 (2022-02-12)
parents cfb29dc98daa
children 241fb98cab1c
line source
1 # SliTaz package receipt.
3 PACKAGE="exo"
4 VERSION="0.10.3"
5 CATEGORY="meta"
6 SHORT_DESC="Xfce Exo library and tools"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://www.xfce.org"
11 WGET_URL="http://archive.xfce.org/xfce/4.10/src/$TARBALL"
12 COOK_OPT="!fs"
14 DEPENDS="exo-tools libexo util-linux-uuid libgio"
15 BUILD_DEPENDS="libxfce4util-dev perl-uri startup-notification-dev intltool \
16 util-linux-uuid-dev libgio-dev glib-dev gtk+-dev libxfce4ui-dev libxml2-dev \
17 xcb-util-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 patch -p1 -i $stuff/helpers.rc.u
30 export LDFLAGS="$LDFLAGS -lxcb-util"
31 ./configure \
32 --prefix=/usr \
33 --sysconfdir=/etc \
34 --libexecdir=/usr/lib/libexo \
35 --disable-debug \
36 --mandir=/usr/share/man \
37 --disable-python \
38 $CONFIGURE_ARGS && \
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir $fs/usr
46 }