wok-current view ympd/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 5ea0ce1cecc0
children
line source
1 # SliTaz package receipt.
3 PACKAGE="ympd"
4 VERSION="1.3.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="Lightweight MPD (Music Player Daemon) web client."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/notandy/ympd"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/notandy/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="libmpdclient mpd openssl"
15 BUILD_DEPENDS="cmake libmpdclient-dev openssl-dev"
17 #HOST_ARCH="i486 arm"
19 # Handle cross compilation.
20 case "$ARCH" in
21 arm*)
22 BUILD_DEPENDS="libmpdclient-dev"
23 ARCH_ARGS="-DLIBMPDCLIENT_LIBRARY=/cross/$ARCH/sysroot/usr/lib \
24 -DLIBMPDCLIENT_INCLUDE_DIR=/cross/$ARCH/sysroot/usr/include" ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
31 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 mkdir build && cd build
38 cmake .. \
39 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
40 ${ARCH_ARGS} &&
41 make &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
49 cp -a $install/usr/bin $fs/usr
50 }