wok view ympd/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 3b19fa0b9a88
children
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://github.com/notandy/ympd"
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 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
31 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 mkdir build && cd build
38 cmake .. \
39 -DCMAKE_INSTALL_PREFIX:PATH=/usr \
40 ${ARCH_ARGS} &&
41 make &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr
49 cp -a $install/usr/bin $fs/usr
50 }