wok view telepathy-glib/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 a78610b2eb47
children
line source
1 # SliTaz package receipt.
3 PACKAGE="telepathy-glib"
4 VERSION="0.99.11"
5 CATEGORY="network"
6 SHORT_DESC="A D-Bus framework for unifying real time communication."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://telepathy.freedesktop.org/wiki/"
11 WGET_URL="https://telepathy.freedesktop.org/releases/$PACKAGE/$TARBALL"
13 DEPENDS="glib gobject-introspection libgio dbus dbus-glib libffi"
14 BUILD_DEPENDS="glib-dev gobject-introspection-dev libgio-dev \
15 dbus-dev dbus-glib-dev intltool diffutils libffi libxslt gtk-doc"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure --prefix=/usr \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share $fs/usr/lib
37 cp -a $install/usr/share/gir* $fs/usr/share
38 cp -a $install/usr/share/glib* $fs/usr/share
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 cp -a $install/usr/lib/gir* $fs/usr/lib
41 }