wok view cmus/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 | 7c71a871a04b |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="cmus"
4 VERSION="2.9.1"
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 libatomic libmad libvorbis ncurses"
15 BUILD_DEPENDS="alsa-lib-dev flac-dev gcc83 libatomic libmad-dev libvorbis-dev
16 ncurses-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -latomic"
30 ./configure \
31 CC=gcc-83 \
32 CXX=g++-83 \
33 CONFIG_AO=n \
34 CONFIG_FFMPEG=n \
35 CONFIG_JACK=n \
36 CONFIG_OPUS=n \
37 CONFIG_PULSE=n \
38 CONFIG_ROAR=n \
39 CONFIG_SAMPLERATE=n \
40 prefix=/usr &&
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/share
49 mkdir -p $fs/usr/bin
50 mkdir -p $fs/usr/lib
52 cp -a $install/usr/bin/cmus* $fs/usr/bin
53 cp -a $install/usr/lib/cmus $fs/usr/lib
54 cp -a $install/usr/share/cmus $fs/usr/share
55 }