wok-current view libsbc/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents 71360a13cd94
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libsbc"
4 VERSION="1.5"
5 CATEGORY="multimedia"
6 SHORT_DESC="Digital audio encoder and decoder for Bluetooth audio output devices"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.bluez.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WGET_URL="https://www.kernel.org/pub/linux/bluetooth/sbc-$VERSION.tar.xz"
13 # What is the latest version available today?
14 current_version()
15 {
16 wget -O - ${WGET_URL%/*} 2>/dev/null | \
17 sed "/latest/d;/sbc-[0-9]/!d;/tar/!d;s|.*sbc-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ./configure \
24 --prefix=/usr \
25 --disable-static \
26 --disable-tester \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 }