wok-6.x annotate ympd/receipt @ rev 25122
Up apache (2.4.54)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 28 08:48:09 2022 +0000 (2022-06-28) |
parents | 5ea0ce1cecc0 |
children |
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" |
pascal@25073 | 9 WEB_SITE="https://github.com/notandy/ympd" |
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@25073 | 27 # What is the latest version available today? |
pascal@24055 | 28 current_version() |
pascal@24055 | 29 { |
pascal@24055 | 30 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 31 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 32 } |
pascal@24055 | 33 |
pankso@16173 | 34 # Rules to configure and make the package. |
pankso@16173 | 35 compile_rules() |
pankso@16173 | 36 { |
pankso@16173 | 37 mkdir build && cd build |
Hans-G?nter@22323 | 38 cmake .. \ |
Hans-G?nter@22323 | 39 -DCMAKE_INSTALL_PREFIX:PATH=/usr \ |
Hans-G?nter@22323 | 40 ${ARCH_ARGS} && |
Hans-G?nter@22323 | 41 make && |
Hans-G?nter@22323 | 42 make install |
pankso@16173 | 43 } |
pankso@16173 | 44 |
pankso@16173 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16173 | 46 genpkg_rules() |
pankso@16173 | 47 { |
pankso@16173 | 48 mkdir -p $fs/usr |
pankso@16173 | 49 cp -a $install/usr/bin $fs/usr |
pankso@16173 | 50 } |