wok view ympd/receipt @ rev 24381
updated blktrace (1.2.0 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 06 10:30:31 2022 +0100 (2022-02-06) |
parents | 5316b4469068 |
children | 3b19fa0b9a88 |
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://www.ympd.org/"
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 current_version()
28 {
29 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
30 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 mkdir build && cd build
37 cmake .. \
38 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
39 ${ARCH_ARGS} &&
40 make &&
41 make install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
48 cp -a $install/usr/bin $fs/usr
49 }