wok-current annotate alsa-utils/receipt @ rev 14900

Add firmware-mod-kit
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 31 11:20:11 2013 +0200 (2013-07-31)
parents 58b344c81e37
children 380ffe05937a
rev   line source
pankso@32 1 # SliTaz package receipt.
pankso@32 2
pankso@32 3 PACKAGE="alsa-utils"
slaxemulator@14608 4 VERSION="1.0.27.1"
pankso@177 5 CATEGORY="multimedia"
pankso@32 6 SHORT_DESC="Alsa sound system utilities et config tools."
pankso@32 7 MAINTAINER="pankso@slitaz.org"
pankso@32 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@32 9 WEB_SITE="http://www.alsa-project.org/"
slaxemulator@14608 10 WGET_URL="ftp://ftp.alsa-project.org/pub/utils/$TARBALL"
slaxemulator@12361 11 CONFIG_FILES="/var/lib/alsa/asound.state"
pankso@32 12
pankso@13627 13 DEPENDS="alsa-lib ncurses util-linux-getopt"
pankso@13627 14 BUILD_DEPENDS="alsa-lib-dev ncurses-dev"
pankso@13627 15
pankso@32 16 # Rules to configure and make the package.
pankso@32 17 compile_rules()
pankso@32 18 {
pankso@32 19 cd $src
pankso@3001 20 ./configure \
pankso@3001 21 --prefix=/usr \
pankso@3001 22 --infodir=/usr/share/info \
pankso@3001 23 --mandir=/usr/share/man \
pascal@3032 24 --disable-xmlto \
pankso@3001 25 $CONFIGURE_ARGS &&
pascal@1447 26 make &&
slaxemulator@12361 27 make DESTDIR=$DESTDIR install
pankso@32 28 }
pankso@32 29
pankso@32 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@32 31 genpkg_rules()
pankso@32 32 {
pankso@13627 33 mkdir -p $fs/usr/share/alsa $fs/var/lib/alsa $fs/etc
pankso@13627 34 #touch $fs/etc/asound.state
pankso@13627 35 cp -a $install/usr/bin $fs/usr
pankso@13627 36 cp -a $install/usr/sbin $fs/usr
pankso@13627 37 cp -a $install/usr/share/alsa/init $fs/usr/share/alsa
slaxemulator@14608 38
pankso@13627 39 # Declare asound.state
pankso@10774 40 touch $fs/var/lib/alsa/asound.state
pankso@32 41 chmod 755 $fs/usr/sbin/*
pankso@256 42 # Remove speaker-test (18 Ko and needs sounds)
pankso@256 43 rm $fs/usr/bin/speaker-test
pankso@32 44 # For conf we need /var/tmp
pankso@32 45 mkdir -p $fs/var/tmp
pankso@32 46 chmod 1777 $fs/var/tmp
pankso@3107 47 # Remove alsaconf (use soundconf).
pankso@32 48 rm $fs/usr/sbin/alsaconf
pankso@32 49 }
pankso@10774 50
pankso@10774 51 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
pankso@10774 52 # current one and reenable it after package install so user still have ther
pankso@10774 53 # sound card and settings working.
pankso@10774 54 pre_install()
pankso@10774 55 {
pankso@10774 56 if [ -f $1/etc/asound.state ]; then
pankso@10774 57 mv $1/etc/asound.state /tmp
pankso@10774 58 fi
pankso@10774 59 }
pankso@10774 60
pankso@10774 61 post_install()
pankso@10774 62 {
pankso@10774 63 if [ -f $1/tmp/asound.state ]; then
pankso@10774 64 mv $1/tmp/asound.state $1/var/lib/alsa
pankso@10774 65 fi
pankso@10774 66 }