wok-6.x view mt-daapd/receipt @ rev 24465

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 17 12:02:46 2022 +0000 (2022-02-17)
parents 9689f1b75619
children
line source
1 # SliTaz package receipt.
3 PACKAGE="mt-daapd"
4 VERSION="0.2.4.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Media server for the Roku SoundBridge and iTunes."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://fireflymediaserver.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 PROVIDE="firefly"
14 DEPENDS="gdbm libid3tag zlib"
15 BUILD_DEPENDS="gdbm-dev libid3tag-dev glib"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/mt-daapd/files/mt-daapd/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/mt-daapd/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 #
27 compile_rules()
28 {
29 ./configure --prefix=/usr $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 cp -a $install/usr $fs
38 }