wok view libmpd/receipt @ rev 25445

itaka: fix wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 06 07:38:52 2022 +0000 (2022-09-06)
parents c6c2c42e733e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libmpd"
4 VERSION="11.8.17"
5 CATEGORY="multimedia"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="GPL2"
8 SHORT_DESC="Signal based wrapper around libmpdclient"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://gmpclient.org/"
11 WGET_URL="https://download.sarine.nl/Programs/gmpc/${VERSION%.*}/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glib"
15 BUILD_DEPENDS="pkg-config glib-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://download.sarine.nl/Programs/gmpc/$( \
21 wget -O - https://download.sarine.nl/Programs/gmpc/ 2>/dev/null | \
22 sed '/folder/!d;/old\//d;s|.*href="||;s|/".*||' | sort -Vr | sed q)/ 2>/dev/null | \
23 sed '/libmpd-/!d;s|.*href="libmpd-||;s|.tar.*||' | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
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 mkdir -p $fs/usr/lib
38 cp -a $install/usr/lib/*so* $fs/usr/lib/
39 }