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