wok-6.x view alsa-utils/receipt @ rev 14288

Up: eet (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:00:33 2013 +0200 (2013-04-07)
parents 73641efed1cc
children 58b344c81e37
line source
1 # SliTaz package receipt.
3 PACKAGE="alsa-utils"
4 VERSION="1.0.26"
5 CATEGORY="multimedia"
6 SHORT_DESC="Alsa sound system utilities et config tools."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.alsa-project.org/"
10 #WGET_URL="ftp://ftp.alsa-project.org/pub/utils/$TARBALL"
11 WGET_URL="http://alsa.cybermirror.org/utils/$TARBALL"
12 CONFIG_FILES="/var/lib/alsa/asound.state"
14 DEPENDS="alsa-lib ncurses util-linux-getopt"
15 BUILD_DEPENDS="alsa-lib-dev ncurses-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 --disable-xmlto \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/alsa $fs/var/lib/alsa $fs/etc
35 #touch $fs/etc/asound.state
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/sbin $fs/usr
38 cp -a $install/lib/udev $fs/etc
39 cp -a $install/usr/share/alsa/init $fs/usr/share/alsa
41 # Declare asound.state
42 touch $fs/var/lib/alsa/asound.state
43 chmod 755 $fs/usr/sbin/*
45 # Remove speaker-test (18 Ko and needs sounds)
46 rm $fs/usr/bin/speaker-test
48 # For conf we need /var/tmp
49 mkdir -p $fs/var/tmp
50 chmod 1777 $fs/var/tmp
52 # Remove alsaconf (use soundconf).
53 rm $fs/usr/sbin/alsaconf
54 }
56 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
57 # current one and reenable it after package install so user still have ther
58 # sound card and settings working.
59 pre_install()
60 {
61 if [ -f $1/etc/asound.state ]; then
62 mv $1/etc/asound.state /tmp
63 fi
64 }
66 post_install()
67 {
68 if [ -f $1/tmp/asound.state ]; then
69 mv $1/tmp/asound.state $1/var/lib/alsa
70 fi
71 }