wok annotate moc/receipt @ rev 24011

mosh: create /usr/share/terminfo/x/xterm-256color link
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 05 17:16:12 2021 +0000 (2021-02-05)
parents 174738f4e9f9
children 241fb98cab1c
rev   line source
paul@3900 1 # SliTaz package receipt.
paul@3900 2
paul@3900 3 PACKAGE="moc"
Hans-G?nter@21464 4 VERSION="2.5.2"
paul@3900 5 CATEGORY="multimedia"
paul@3900 6 SHORT_DESC="Music on console."
paul@3900 7 MAINTAINER="paul@slitaz.org"
pascal@15583 8 LICENSE="GPL2"
Hans-G?nter@21464 9 WEB_SITE="https://moc.daper.net/"
Hans-G?nter@21464 10
pascal@15583 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@21464 12 WGET_URL="http://ftp.daper.net/pub/soft/$PACKAGE/stable/$TARBALL"
Hans-G?nter@21464 13
Hans-G?nter@21464 14 DEPENDS="alsa-lib curl db ffmpeg flac libid3tag libltdl libmad libmagic \
Hans-G?nter@21464 15 libogg libsamplerate libsndfile libvorbis ncursesw"
Hans-G?nter@21464 16 BUILD_DEPENDS="alsa-lib-dev curl-dev db-dev flac-dev libid3tag-dev \
Hans-G?nter@21464 17 libmad-dev libmagic-dev libogg-dev libsamplerate libsamplerate-dev \
Hans-G?nter@21464 18 libsndfile-dev libtool libvorbis-dev ncurses-dev"
Hans-G?nter@21464 19
pankso@16021 20 #HOST_ARCH="i486 arm"
pascal@15583 21
pankso@16021 22 # Handle cross compilation
pankso@16021 23 case "$ARCH" in
pankso@16021 24 arm) BUILD_DEPENDS="alsa-lib-dev libid3tag-dev libogg-dev libvorbis-dev" ;;
pankso@16021 25 esac
paul@3900 26
paul@3900 27 # Rules to configure and make the package.
paul@3900 28 compile_rules()
paul@3900 29 {
pankso@16021 30 export LIBTOOL=${HOST_SYSTEM}-libtool
Hans-G?nter@21464 31 ./configure \
Hans-G?nter@21464 32 --prefix=/usr \
Hans-G?nter@21464 33 --infodir=/usr/share/info \
Hans-G?nter@21464 34 --mandir=/usr/share/man \
paul@3900 35 $CONFIGURE_ARGS &&
Hans-G?nter@21464 36 make -j 1 &&
Hans-G?nter@21464 37 make DESTDIR=$DESTDIR install
paul@3900 38 }
paul@3900 39
paul@3900 40 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@3900 41 genpkg_rules()
paul@3900 42 {
Hans-G?nter@21464 43 mkdir -p $fs/usr/lib/moc
Hans-G?nter@21464 44 mkdir -p $fs/usr/share/doc
Hans-G?nter@21464 45 mkdir -p $fs/usr/share/moc
paul@3900 46
Hans-G?nter@21464 47 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21464 48 cp -a $install/usr/lib/moc/* $fs/usr/lib/moc
Hans-G?nter@21464 49 cp -a $install/usr/share/doc/* $fs/usr/share/doc
Hans-G?nter@21464 50 cp -a $install/usr/share/moc/* $fs/usr/share/moc
Hans-G?nter@21464 51
Hans-G?nter@21464 52 # delete unneeded libraries
paul@3900 53 rm $fs/usr/lib/moc/decoder_plugins/*.*a
paul@3900 54 }