wok view moc/receipt @ rev 25043

lxpanel: update web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 01 16:50:09 2022 +0000 (2022-06-01)
parents 3d4dabd4c234
children
line source
1 # SliTaz package receipt.
3 PACKAGE="moc"
4 VERSION="2.5.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Music on console."
7 MAINTAINER="paul@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://moc.daper.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://ftp.daper.net/pub/soft/$PACKAGE/stable/$TARBALL"
14 DEPENDS="alsa-lib curl db ffmpeg flac libid3tag libltdl libmad libmagic \
15 libogg libsamplerate libsndfile libvorbis ncursesw"
16 BUILD_DEPENDS="alsa-lib-dev curl-dev db-dev flac-dev libid3tag-dev \
17 libmad-dev libmagic-dev libogg-dev libsamplerate libsamplerate-dev \
18 libsndfile-dev libtool libvorbis-dev ncurses-dev"
20 #HOST_ARCH="i486 arm"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm) BUILD_DEPENDS="alsa-lib-dev libid3tag-dev libogg-dev libvorbis-dev" ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
31 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 export LIBTOOL=${HOST_SYSTEM}-libtool
38 ./configure \
39 --prefix=/usr \
40 --infodir=/usr/share/info \
41 --mandir=/usr/share/man \
42 $CONFIGURE_ARGS &&
43 make -j 1 &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib/moc
51 mkdir -p $fs/usr/share/doc
52 mkdir -p $fs/usr/share/moc
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib/moc/* $fs/usr/lib/moc
56 cp -a $install/usr/share/doc/* $fs/usr/share/doc
57 cp -a $install/usr/share/moc/* $fs/usr/share/moc
59 # delete unneeded libraries
60 rm $fs/usr/lib/moc/decoder_plugins/*.*a
61 }