wok-current view alsa-utils/receipt @ rev 14639
Fixed all xorg receipts to use SOURCE variable again. Please use SOURCE variable Aleksej.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jun 02 09:36:07 2013 +0000 (2013-06-02) |
parents | 58b344c81e37 |
children | 380ffe05937a |
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 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 CONFIG_FILES="/var/lib/alsa/asound.state"
13 DEPENDS="alsa-lib ncurses util-linux-getopt"
14 BUILD_DEPENDS="alsa-lib-dev ncurses-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --disable-xmlto \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/share/alsa $fs/var/lib/alsa $fs/etc
34 #touch $fs/etc/asound.state
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/sbin $fs/usr
37 cp -a $install/usr/share/alsa/init $fs/usr/share/alsa
39 # Declare asound.state
40 touch $fs/var/lib/alsa/asound.state
41 chmod 755 $fs/usr/sbin/*
42 # Remove speaker-test (18 Ko and needs sounds)
43 rm $fs/usr/bin/speaker-test
44 # For conf we need /var/tmp
45 mkdir -p $fs/var/tmp
46 chmod 1777 $fs/var/tmp
47 # Remove alsaconf (use soundconf).
48 rm $fs/usr/sbin/alsaconf
49 }
51 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
52 # current one and reenable it after package install so user still have ther
53 # sound card and settings working.
54 pre_install()
55 {
56 if [ -f $1/etc/asound.state ]; then
57 mv $1/etc/asound.state /tmp
58 fi
59 }
61 post_install()
62 {
63 if [ -f $1/tmp/asound.state ]; then
64 mv $1/tmp/asound.state $1/var/lib/alsa
65 fi
66 }