wok annotate alsaplayer/receipt @ rev 32

Add : alsa-* and sound libs (ogg, mad, etc) + mpg123
author Christophe Lincoln <pankso@slitaz.org>
date Tue Dec 18 14:04:58 2007 +0100 (2007-12-18)
parents
children 4959e5789caa
rev   line source
pankso@32 1 # SliTaz package receipt.
pankso@32 2
pankso@32 3 PACKAGE="alsaplayer"
pankso@32 4 VERSION="0.99.80"
pankso@32 5 CATEGORY="extra"
pankso@32 6 SHORT_DESC="Alsa GTK+ PCM player."
pankso@32 7 MAINTAINER="pankso@slitaz.org"
pankso@32 8 DEPENDS="gtk+ alsa-lib libmad"
pankso@32 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@32 10 WEB_SITE="http://www.alsaplayer.org/"
pankso@32 11 WGET_URL="http://www.alsaplayer.org/$TARBALL"
pankso@32 12
pankso@32 13 # Rules to configure and make the package.
pankso@32 14 compile_rules()
pankso@32 15 {
pankso@32 16 cd $src
pankso@32 17 ./configure \
pankso@32 18 --enable-nls \
pankso@32 19 --prefix=/usr \
pankso@32 20 --infodir=/usr/share/info \
pankso@32 21 --mandir=/usr/share/man \
pankso@32 22 $CONFIGURE_ARGS
pankso@32 23 make
pankso@32 24 # Chmod install-sh to avoid install error.
pankso@32 25 chmod 755 install-sh
pankso@32 26 make DESTDIR=$PWD/_pkg install
pankso@32 27 }
pankso@32 28
pankso@32 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@32 30 genpkg_rules()
pankso@32 31 {
pankso@32 32 mkdir -p $fs/usr/lib $fs/usr/share/locale $fs/usr/share/pixmaps
pankso@32 33
pankso@32 34 cp -a $_pkg/usr/bin $fs/usr
pankso@32 35 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@32 36 cp -a $_pkg/usr/lib/alsaplayer $fs/usr/lib
pankso@32 37
pankso@32 38 # Remove devel file and strip all.
pankso@32 39 rm $fs/usr/lib/alsaplayer/*/*.*a
pankso@32 40 strip --strip-unneeded $fs/usr/lib/alsaplayer/*/*
pankso@32 41 strip --strip-unneeded $fs/usr/lib/*.so*
pankso@32 42 strip -s $fs/usr/bin/*
pankso@32 43
pankso@32 44 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
pankso@32 45 cp stuff/alsaplayer.png $fs/usr/share/pixmaps
pankso@32 46 }
pankso@32 47