wok-next view alsa-utils/receipt @ rev 11083
Up: claws-mail-spam_report to 0.3.14.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Oct 17 01:56:28 2011 +0000 (2011-10-17) |
parents | b4844ead83a1 |
children | a2a779a6f0d1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="alsa-utils"
4 VERSION="1.0.24.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Alsa sound system utilities et config tools."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="alsa-lib ncurses util-linux-ng-getopt"
9 BUILD_DEPENDS="alsa-lib alsa-lib-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.alsa-project.org/"
12 WGET_URL="ftp://ftp.alsa-project.org/pub/utils/$TARBALL"
13 CONFIG_FILES="/etc/asound.state"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 --disable-xmlto \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $fs/var/lib/alsa
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/sbin $fs/usr
35 touch $fs/var/lib/alsa/asound.state
36 chmod 755 $fs/usr/sbin/*
37 # Remove speaker-test (18 Ko and needs sounds)
38 rm $fs/usr/bin/speaker-test
39 # For conf we need /var/tmp
40 mkdir -p $fs/var/tmp
41 chmod 1777 $fs/var/tmp
42 # Remove alsaconf (use soundconf).
43 rm $fs/usr/sbin/alsaconf
44 }
46 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
47 # current one and reenable it after package install so user still have ther
48 # sound card and settings working.
49 pre_install()
50 {
51 if [ -f $1/etc/asound.state ]; then
52 mv $1/etc/asound.state /tmp
53 fi
54 }
56 post_install()
57 {
58 if [ -f $1/tmp/asound.state ]; then
59 mv $1/tmp/asound.state $1/var/lib/alsa
60 fi
61 }