wok annotate ncmpc/receipt @ rev 25095

Up libkeybinder (0.3.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 18 13:48:16 2022 +0000 (23 months ago)
parents 5fb3a2c4afe4
children
rev   line source
paul@1377 1 # SliTaz package receipt.
paul@1377 2
paul@1377 3 PACKAGE="ncmpc"
Hans-G?nter@23230 4 VERSION="0.37"
paul@1377 5 CATEGORY="multimedia"
Hans-G?nter@23230 6 TAGS="music player"
paul@1377 7 SHORT_DESC="A ncurses MPD client."
paul@1377 8 MAINTAINER="paul@slitaz.org"
pascal@15001 9 LICENSE="GPL2"
pascal@20671 10 WEB_SITE="https://www.musicpd.org/clients/ncmpc/"
Hans-G?nter@23230 11
Hans-G?nter@23230 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@23230 13 WGET_URL="https://www.musicpd.org/download/$PACKAGE/${VERSION%.*}/$TARBALL"
Hans-G?nter@23230 14
Hans-G?nter@23230 15 DEPENDS="gcc83-lib-base glib libboost libmpdclient mpd ncurses"
Hans-G?nter@23230 16 BUILD_DEPENDS="gcc83 glib-dev libboost-dev libmpdclient-dev meson
Hans-G?nter@23230 17 ncurses-dev ninja"
Hans-G?nter@23230 18
pankso@16103 19 HOST_ARCH="i486 arm"
paul@1377 20
pascal@24453 21 # What is the latest version available today?
pascal@24453 22 current_version()
pascal@24453 23 {
pascal@24453 24 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24453 25 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 26 }
pascal@24453 27
paul@1377 28 # Rules to configure and make the package.
paul@1377 29 compile_rules()
paul@1377 30 {
Hans-G?nter@23230 31 export CC=gcc-83
Hans-G?nter@23230 32 export CXX=g++-83
Hans-G?nter@23230 33
Hans-G?nter@23230 34 meson . _build --prefix=/usr &&
Hans-G?nter@23230 35 ninja -C _build &&
Hans-G?nter@23230 36 ninja -C _build install
paul@1377 37 }
paul@1377 38
paul@1377 39 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@1377 40 genpkg_rules()
paul@1377 41 {
paul@1377 42 mkdir -p $fs/usr/share/ncmpc
Hans-G?nter@23230 43 cp -a $install/usr/bin $fs/usr
paul@1377 44 }
paul@1377 45