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