wok-next diff moc/receipt @ rev 20834
prosody: interesting, requires lua 5.1, and not 5.3
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sun Jun 17 19:14:11 2018 +0000 (2018-06-17) |
parents | 0a5b410586a2 |
children | d5aab818505e |
line diff
1.1 --- a/moc/receipt Mon Mar 26 13:35:23 2018 +0200 1.2 +++ b/moc/receipt Sun Jun 17 19:14:11 2018 +0000 1.3 @@ -1,47 +1,32 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="moc" 1.8 VERSION="2.5.0" 1.9 CATEGORY="multimedia" 1.10 -SHORT_DESC="Music on console." 1.11 +SHORT_DESC="Music on console" 1.12 MAINTAINER="paul@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://moc.daper.net/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 -WEB_SITE="http://moc.daper.net/" 1.18 WGET_URL="http://ftp.daper.net/pub/soft/moc/stable/$TARBALL" 1.19 1.20 -DEPENDS="alsa-lib libvorbis libogg libmad libid3tag flac curl \ 1.21 -libsamplerate libsndfile libltdl ffmpeg ncurses db" 1.22 +BUILD_DEPENDS_arm="alsa-lib-dev libid3tag-dev libogg-dev libvorbis-dev" 1.23 BUILD_DEPENDS="libvorbis-dev libogg-dev libmad-dev libid3tag-dev flac-dev db-dev \ 1.24 curl-dev libsamplerate-dev alsa-lib-dev ncurses-dev libsndfile-dev libsamplerate \ 1.25 libtool libmagic-dev" 1.26 1.27 -# Handle cross compilation 1.28 -case "$ARCH" in 1.29 - arm) BUILD_DEPENDS="alsa-lib-dev libid3tag-dev libogg-dev libvorbis-dev" ;; 1.30 -esac 1.31 +compile_rules() { 1.32 + export LIBTOOL=${HOST_SYSTEM}-libtool 1.33 1.34 -# Rules to configure and make the package. 1.35 -compile_rules() 1.36 -{ 1.37 - export LIBTOOL=${HOST_SYSTEM}-libtool 1.38 - ./configure \ 1.39 - --prefix=/usr \ 1.40 - --infodir=/usr/share/info \ 1.41 - --mandir=/usr/share/man \ 1.42 - $CONFIGURE_ARGS && 1.43 - make && make DESTDIR=$DESTDIR install 1.44 + ./configure $CONFIGURE_ARGS && 1.45 + fix libtool && 1.46 + make && 1.47 + make DESTDIR=$DESTDIR install 1.48 } 1.49 1.50 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.51 -genpkg_rules() 1.52 -{ 1.53 - mkdir -p $fs/usr/lib/moc $fs/usr/share/doc $fs/usr/share/moc 1.54 - cp -a $install/usr/bin $fs/usr 1.55 - cp -a $install/usr/lib/moc/* $fs/usr/lib/moc 1.56 - cp -a $install/usr/share/doc/* $fs/usr/share/doc 1.57 - cp -a $install/usr/share/moc/* $fs/usr/share/moc 1.58 - 1.59 - # strip unneeded libraries 1.60 - rm $fs/usr/lib/moc/decoder_plugins/*.*a 1.61 +genpkg_rules() { 1.62 + copy @std 1.63 + DEPENDS="alsa-lib libvorbis libogg libmad libid3tag flac curl \ 1.64 + libsamplerate libsndfile libltdl ffmpeg ncurses db" 1.65 }