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

move to undigest: xorg-xf86-video-sis xorg-xf86-video-savage xorg-xf86-video-r128 xorg-xf86-video-openchrome xorg-xf86-video-mga xorg-xf86-video-mach64
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 13 10:16:45 2013 +0100 (2013-03-13)
parents 73641efed1cc
children 58b344c81e37
rev   line source
pankso@32 1 # SliTaz package receipt.
pankso@32 2
pankso@32 3 PACKAGE="alsa-utils"
pankso@13627 4 VERSION="1.0.26"
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/"
pankso@13627 10 #WGET_URL="ftp://ftp.alsa-project.org/pub/utils/$TARBALL"
pankso@13627 11 WGET_URL="http://alsa.cybermirror.org/utils/$TARBALL"
slaxemulator@12361 12 CONFIG_FILES="/var/lib/alsa/asound.state"
pankso@32 13
pankso@13627 14 DEPENDS="alsa-lib ncurses util-linux-getopt"
pankso@13627 15 BUILD_DEPENDS="alsa-lib-dev ncurses-dev"
pankso@13627 16
pankso@32 17 # Rules to configure and make the package.
pankso@32 18 compile_rules()
pankso@32 19 {
pankso@32 20 cd $src
pankso@3001 21 ./configure \
pankso@3001 22 --prefix=/usr \
pankso@3001 23 --infodir=/usr/share/info \
pankso@3001 24 --mandir=/usr/share/man \
pascal@3032 25 --disable-xmlto \
pankso@3001 26 $CONFIGURE_ARGS &&
pascal@1447 27 make &&
slaxemulator@12361 28 make DESTDIR=$DESTDIR install
pankso@32 29 }
pankso@32 30
pankso@32 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@32 32 genpkg_rules()
pankso@32 33 {
pankso@13627 34 mkdir -p $fs/usr/share/alsa $fs/var/lib/alsa $fs/etc
pankso@13627 35 #touch $fs/etc/asound.state
pankso@13627 36 cp -a $install/usr/bin $fs/usr
pankso@13627 37 cp -a $install/usr/sbin $fs/usr
pankso@13627 38 cp -a $install/lib/udev $fs/etc
pankso@13627 39 cp -a $install/usr/share/alsa/init $fs/usr/share/alsa
pankso@13627 40
pankso@13627 41 # Declare asound.state
pankso@10774 42 touch $fs/var/lib/alsa/asound.state
pankso@32 43 chmod 755 $fs/usr/sbin/*
pankso@13627 44
pankso@256 45 # Remove speaker-test (18 Ko and needs sounds)
pankso@256 46 rm $fs/usr/bin/speaker-test
pankso@13627 47
pankso@32 48 # For conf we need /var/tmp
pankso@32 49 mkdir -p $fs/var/tmp
pankso@32 50 chmod 1777 $fs/var/tmp
pankso@13627 51
pankso@3107 52 # Remove alsaconf (use soundconf).
pankso@32 53 rm $fs/usr/sbin/alsaconf
pankso@32 54 }
pankso@10774 55
pankso@10774 56 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
pankso@10774 57 # current one and reenable it after package install so user still have ther
pankso@10774 58 # sound card and settings working.
pankso@10774 59 pre_install()
pankso@10774 60 {
pankso@10774 61 if [ -f $1/etc/asound.state ]; then
pankso@10774 62 mv $1/etc/asound.state /tmp
pankso@10774 63 fi
pankso@10774 64 }
pankso@10774 65
pankso@10774 66 post_install()
pankso@10774 67 {
pankso@10774 68 if [ -f $1/tmp/asound.state ]; then
pankso@10774 69 mv $1/tmp/asound.state $1/var/lib/alsa
pankso@10774 70 fi
pankso@10774 71 }