wok view mpc/receipt @ rev 24805
Up apache (2.4.53)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 22 10:13:41 2022 +0000 (2022-03-22) |
parents | 1246501a2275 |
children | 26718eedbc22 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpc"
4 VERSION="0.33"
5 CATEGORY="multimedia"
6 SHORT_DESC="A command line tool to interface MPD."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.musicpd.org/clients/mpc/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://www.musicpd.org/download/mpc/${VERSION%.*}/$TARBALL"
14 DEPENDS="libmpdclient mpd"
15 BUILD_DEPENDS="libmpdclient-dev meson"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 compile_rules()
27 {
28 meson . _build --prefix=/usr &&
29 ninja -C _build &&
30 ninja -C _build install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr
37 cp -a $install/usr/bin $fs/usr
38 }