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