wok annotate cmus/receipt @ rev 25469

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 07 09:15:33 2022 +0000 (2022-10-07)
parents 5ea0ce1cecc0
children fe1b5660fdd1
rev   line source
claudinei@13350 1 # SliTaz package receipt.
claudinei@13350 2
claudinei@13350 3 PACKAGE="cmus"
Hans-G?nter@24428 4 VERSION="2.9.1"
claudinei@13350 5 CATEGORY="multimedia"
Hans-G?nter@22603 6 SHORT_DESC="A small, fast and powerful console music player."
claudinei@13350 7 MAINTAINER="claudinei@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
Hans-G?nter@22603 9 WEB_SITE="https://cmus.github.io/"
claudinei@13350 10
Hans-G?nter@22603 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@22603 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION/$TARBALL"
Hans-G?nter@22603 13
Hans-G?nter@24428 14 DEPENDS="alsa-lib flac gcc83-lib-base libatomic libmad libvorbis ncurses"
Hans-G?nter@24428 15 BUILD_DEPENDS="alsa-lib-dev flac-dev gcc83 libatomic libmad-dev libvorbis-dev
Hans-G?nter@22603 16 ncurses-dev"
claudinei@13350 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
claudinei@13350 24 # Rules to configure and make the package.
claudinei@13350 25 compile_rules()
claudinei@13350 26 {
Hans-G?nter@22603 27 export LDFLAGS="$LDFLAGS -latomic"
Hans-G?nter@24428 28
Hans-G?nter@22603 29 ./configure \
Hans-G?nter@22603 30 CC=gcc-83 \
Hans-G?nter@22603 31 CXX=g++-83 \
Hans-G?nter@22603 32 CONFIG_AO=n \
Hans-G?nter@22603 33 CONFIG_FFMPEG=n \
Hans-G?nter@22603 34 CONFIG_JACK=n \
Hans-G?nter@22603 35 CONFIG_OPUS=n \
Hans-G?nter@22603 36 CONFIG_PULSE=n \
Hans-G?nter@22603 37 CONFIG_ROAR=n \
Hans-G?nter@22603 38 CONFIG_SAMPLERATE=n \
Hans-G?nter@22603 39 prefix=/usr &&
Hans-G?nter@22603 40 make &&
Hans-G?nter@22603 41 make install
claudinei@13350 42 }
claudinei@13350 43
claudinei@13350 44 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@13350 45 genpkg_rules()
claudinei@13350 46 {
claudinei@13350 47 mkdir -p $fs/usr/share
claudinei@13350 48 mkdir -p $fs/usr/bin
claudinei@13350 49 mkdir -p $fs/usr/lib
Hans-G?nter@22603 50
Hans-G?nter@22603 51 cp -a $install/usr/bin/cmus* $fs/usr/bin
Hans-G?nter@22603 52 cp -a $install/usr/lib/cmus $fs/usr/lib
Hans-G?nter@22603 53 cp -a $install/usr/share/cmus $fs/usr/share
claudinei@13350 54 }