wok view alsa-utils/receipt @ rev 15769

Up tazinst (3.94)
author Dominique Corbex <domcox@slitaz.org>
date Tue Jan 07 21:51:41 2014 +0100 (2014-01-07)
parents 2d6230d8c1ed
children a73d738315e8
line source
1 # SliTaz package receipt.
3 PACKAGE="alsa-utils"
4 VERSION="1.0.27.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Alsa sound system utilities et config tools."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.alsa-project.org/"
11 WGET_URL="ftp://ftp.alsa-project.org/pub/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/usr/share/alsa/init $fs/usr/share/alsa
40 # Declare asound.state
41 touch $fs/var/lib/alsa/asound.state
42 chmod 755 $fs/usr/sbin/*
43 # Remove speaker-test (18 Ko and needs sounds)
44 rm $fs/usr/bin/speaker-test
45 # For conf we need /var/tmp
46 mkdir -p $fs/var/tmp
47 chmod 1777 $fs/var/tmp
48 # Remove alsaconf (use soundconf).
49 rm $fs/usr/sbin/alsaconf
50 }
52 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
53 # current one and reenable it after package install so user still have ther
54 # sound card and settings working.
55 pre_install()
56 {
57 if [ -f $1/etc/asound.state ]; then
58 mv $1/etc/asound.state /tmp
59 fi
60 }
62 post_install()
63 {
64 if [ -f $1/tmp/asound.state ]; then
65 mv $1/tmp/asound.state $1/var/lib/alsa
66 fi
67 }