# SliTaz package receipt. PACKAGE="ympd" VERSION="1.3.0" CATEGORY="multimedia" SHORT_DESC="Lightweight MPD (Music Player Daemon) web client." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://github.com/notandy/ympd" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/notandy/$PACKAGE/archive/v$VERSION.tar.gz" DEPENDS="libmpdclient mpd openssl" BUILD_DEPENDS="cmake libmpdclient-dev openssl-dev" #HOST_ARCH="i486 arm" # Handle cross compilation. case "$ARCH" in arm*) BUILD_DEPENDS="libmpdclient-dev" ARCH_ARGS="-DLIBMPDCLIENT_LIBRARY=/cross/$ARCH/sysroot/usr/lib \ -DLIBMPDCLIENT_INCLUDE_DIR=/cross/$ARCH/sysroot/usr/include" ;; esac # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { mkdir build && cd build cmake .. \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ ${ARCH_ARGS} && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr }