wok view alsa-utils/receipt @ rev 11916
squidguard: improve package
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Thu Mar 01 00:01:17 2012 +0100 (2012-03-01) |
parents | e2cf25cb0087 |
children | a82cb1d0160a |
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 $fs/etc
33 touch $fs/etc/asound.state
34 cp -a $_pkg/usr/bin $fs/usr
35 cp -a $_pkg/usr/sbin $fs/usr
36 touch $fs/var/lib/alsa/asound.state
37 chmod 755 $fs/usr/sbin/*
38 # Remove speaker-test (18 Ko and needs sounds)
39 rm $fs/usr/bin/speaker-test
40 # For conf we need /var/tmp
41 mkdir -p $fs/var/tmp
42 chmod 1777 $fs/var/tmp
43 # Remove alsaconf (use soundconf).
44 rm $fs/usr/sbin/alsaconf
45 }
47 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
48 # current one and reenable it after package install so user still have ther
49 # sound card and settings working.
50 pre_install()
51 {
52 if [ -f $1/etc/asound.state ]; then
53 mv $1/etc/asound.state /tmp
54 fi
55 }
57 post_install()
58 {
59 if [ -f $1/tmp/asound.state ]; then
60 mv $1/tmp/asound.state $1/var/lib/alsa
61 fi
62 }