wok-next annotate ympd/receipt @ rev 20545

vmtouch: create $install/usr/bin path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 03 15:08:22 2018 +0200 (2018-04-03)
parents c4e53a39395a
children 7506b35e1c6f
rev   line source
pankso@16173 1 # SliTaz package receipt.
pankso@16173 2
pankso@16173 3 PACKAGE="ympd"
pascal@16322 4 VERSION="1.2.1"
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"
pascal@16322 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16173 10 WEB_SITE="http://www.ympd.org/"
pascal@16322 11 WGET_URL="https://github.com/notandy/ympd/archive/v$VERSION.tar.gz"
pankso@16173 12
pankso@16173 13 DEPENDS="mpd libmpdclient"
al@20513 14 BUILD_DEPENDS="libmpdclient-dev cmake"
pankso@16173 15
pankso@16186 16 # Handle cross compilation.
pankso@16186 17 case "$ARCH" in
pankso@16186 18 arm*)
pankso@16186 19 BUILD_DEPENDS="libmpdclient-dev"
pankso@16186 20 ARCH_ARGS="-DLIBMPDCLIENT_LIBRARY=/cross/$ARCH/sysroot/usr/lib \
pankso@16186 21 -DLIBMPDCLIENT_INCLUDE_DIR=/cross/$ARCH/sysroot/usr/include" ;;
pankso@16186 22 esac
pankso@16186 23
pankso@16173 24 # Rules to configure and make the package.
pankso@16173 25 compile_rules()
pankso@16173 26 {
pankso@16173 27 mkdir build && cd build
pankso@16173 28 cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
pankso@16186 29 ${ARCH_ARGS} .. &&
pankso@16173 30 make && make install
pankso@16173 31 }
pankso@16173 32
pankso@16173 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16173 34 genpkg_rules()
pankso@16173 35 {
pankso@16173 36 mkdir -p $fs/usr
pankso@16173 37 cp -a $install/usr/bin $fs/usr
pankso@16173 38 }