wok annotate ofono/receipt @ rev 24992

Up sip (4.19.25)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 14 18:19:29 2022 +0000 (2022-05-14)
parents 109be9bea982
children 1b965c2713aa
rev   line source
slaxemulator@9314 1 # SliTaz package receipt.
slaxemulator@9314 2
slaxemulator@9314 3 PACKAGE="ofono"
domcox@16003 4 VERSION="1.14"
slaxemulator@9314 5 CATEGORY="network"
slaxemulator@9314 6 SHORT_DESC="Stack for mobile telephony (GSM/UMTS) applications."
slaxemulator@9314 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15577 8 LICENSE="GPL2"
domcox@15396 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
slaxemulator@9314 10 WEB_SITE="http://ofono.org"
domcox@15396 11 WGET_URL="http://linux-kernel.uio.no/pub/linux/network/$PACKAGE/$TARBALL"
slaxemulator@9314 12
pascal@15577 13 DEPENDS="dbus glib udev bluez"
domcox@15396 14 BUILD_DEPENDS="dbus-dev udev-dev glib-dev bluez-dev \
domcox@15396 15 mobile-broadband-provider-info-dev"
pascal@15000 16
pascal@24453 17 # What is the latest version available today?
pascal@24453 18 current_version()
pascal@24453 19 {
pascal@24453 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 22 }
pascal@24453 23
slaxemulator@9314 24 # Rules to configure and make the package.
slaxemulator@9314 25 compile_rules()
slaxemulator@9314 26 {
slaxemulator@9314 27 ./configure \
slaxemulator@9314 28 --prefix=/usr \
slaxemulator@9314 29 --sysconfdir=/etc \
slaxemulator@9314 30 --localstatedir=/var \
slaxemulator@9314 31 --infodir=/usr/share/info \
slaxemulator@9314 32 --mandir=/usr/share/man \
slaxemulator@9314 33 $CONFIGURE_ARGS &&
pascal@15577 34 make && make DESTDIR=$DESTDIR install
slaxemulator@9314 35 }
slaxemulator@9314 36
slaxemulator@9314 37 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@9314 38 genpkg_rules()
slaxemulator@9314 39 {
slaxemulator@9314 40 # sysconfdir
slaxemulator@9314 41 mkdir -p $fs/etc
pascal@15577 42 cp -a $install/etc/* $fs/etc
pascal@15577 43 cp -a $stuff/etc/* $fs/etc
domcox@15396 44 # sbin
slaxemulator@9314 45 mkdir -p $fs/usr
pascal@15577 46 cp -a $install/usr/sbin $fs/usr
slaxemulator@9314 47 }