wok-6.x view ympd/receipt @ rev 20450
youtube-dl: rename source
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 21 13:01:08 2018 +0200 (2018-09-21) |
parents | d6b99c62ef00 |
children | 6135577f4d08 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ympd"
4 VERSION="1.2.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Lightweight MPD (Music Player Daemon) web client."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.ympd.org/"
11 WGET_URL="https://github.com/notandy/ympd/archive/v$VERSION.tar.gz"
12 #HOST_ARCH="i486 arm"
14 DEPENDS="mpd libmpdclient"
15 BUILD_DEPENDS="libmpdclient-dev wget cmake"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm*)
20 BUILD_DEPENDS="libmpdclient-dev"
21 ARCH_ARGS="-DLIBMPDCLIENT_LIBRARY=/cross/$ARCH/sysroot/usr/lib \
22 -DLIBMPDCLIENT_INCLUDE_DIR=/cross/$ARCH/sysroot/usr/include" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir build && cd build
29 cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
30 ${ARCH_ARGS} .. &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 }