wok annotate moc/receipt @ rev 25070
created recipe for alsa-utils-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 11 08:40:38 2022 +0100 (2022-06-11) |
parents | 3d4dabd4c234 |
children |
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 |
pascal@24453 | 27 # What is the latest version available today? |
pascal@24453 | 28 current_version() |
pascal@24453 | 29 { |
pascal@24453 | 30 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 31 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 32 } |
pascal@24453 | 33 |
paul@3900 | 34 # Rules to configure and make the package. |
paul@3900 | 35 compile_rules() |
paul@3900 | 36 { |
pankso@16021 | 37 export LIBTOOL=${HOST_SYSTEM}-libtool |
Hans-G?nter@21464 | 38 ./configure \ |
Hans-G?nter@21464 | 39 --prefix=/usr \ |
Hans-G?nter@21464 | 40 --infodir=/usr/share/info \ |
Hans-G?nter@21464 | 41 --mandir=/usr/share/man \ |
paul@3900 | 42 $CONFIGURE_ARGS && |
Hans-G?nter@21464 | 43 make -j 1 && |
Hans-G?nter@21464 | 44 make DESTDIR=$DESTDIR install |
paul@3900 | 45 } |
paul@3900 | 46 |
paul@3900 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@3900 | 48 genpkg_rules() |
paul@3900 | 49 { |
Hans-G?nter@21464 | 50 mkdir -p $fs/usr/lib/moc |
Hans-G?nter@21464 | 51 mkdir -p $fs/usr/share/doc |
Hans-G?nter@21464 | 52 mkdir -p $fs/usr/share/moc |
paul@3900 | 53 |
Hans-G?nter@21464 | 54 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21464 | 55 cp -a $install/usr/lib/moc/* $fs/usr/lib/moc |
Hans-G?nter@21464 | 56 cp -a $install/usr/share/doc/* $fs/usr/share/doc |
Hans-G?nter@21464 | 57 cp -a $install/usr/share/moc/* $fs/usr/share/moc |
Hans-G?nter@21464 | 58 |
Hans-G?nter@21464 | 59 # delete unneeded libraries |
paul@3900 | 60 rm $fs/usr/lib/moc/decoder_plugins/*.*a |
paul@3900 | 61 } |