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