wok-6.x annotate alsa-utils/receipt @ rev 12446
virtualbox-ose: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 21 19:56:55 2012 +0200 (2012-04-21) |
parents | 26a3881f0035 |
children | 73641efed1cc |
rev | line source |
---|---|
pankso@32 | 1 # SliTaz package receipt. |
pankso@32 | 2 |
pankso@32 | 3 PACKAGE="alsa-utils" |
slaxemulator@12361 | 4 VERSION="1.0.25" |
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@3107 | 8 DEPENDS="alsa-lib ncurses util-linux-ng-getopt" |
pascal@12397 | 9 BUILD_DEPENDS="alsa-lib alsa-lib-dev ncurses-dev" |
pankso@32 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@32 | 11 WEB_SITE="http://www.alsa-project.org/" |
pankso@32 | 12 WGET_URL="ftp://ftp.alsa-project.org/pub/utils/$TARBALL" |
slaxemulator@12361 | 13 CONFIG_FILES="/var/lib/alsa/asound.state" |
pankso@32 | 14 |
pankso@32 | 15 # Rules to configure and make the package. |
pankso@32 | 16 compile_rules() |
pankso@32 | 17 { |
pankso@32 | 18 cd $src |
pankso@3001 | 19 ./configure \ |
pankso@3001 | 20 --prefix=/usr \ |
pankso@3001 | 21 --infodir=/usr/share/info \ |
pankso@3001 | 22 --mandir=/usr/share/man \ |
pascal@3032 | 23 --disable-xmlto \ |
pankso@3001 | 24 $CONFIGURE_ARGS && |
pascal@1447 | 25 make && |
slaxemulator@12361 | 26 make DESTDIR=$DESTDIR install |
pankso@32 | 27 } |
pankso@32 | 28 |
pankso@32 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@32 | 30 genpkg_rules() |
pankso@32 | 31 { |
pascal@11627 | 32 mkdir -p $fs/usr $fs/var/lib/alsa $fs/etc |
pascal@11627 | 33 touch $fs/etc/asound.state |
pankso@32 | 34 cp -a $_pkg/usr/bin $fs/usr |
pankso@32 | 35 cp -a $_pkg/usr/sbin $fs/usr |
pankso@10774 | 36 touch $fs/var/lib/alsa/asound.state |
pankso@32 | 37 chmod 755 $fs/usr/sbin/* |
pankso@256 | 38 # Remove speaker-test (18 Ko and needs sounds) |
pankso@256 | 39 rm $fs/usr/bin/speaker-test |
pankso@32 | 40 # For conf we need /var/tmp |
pankso@32 | 41 mkdir -p $fs/var/tmp |
pankso@32 | 42 chmod 1777 $fs/var/tmp |
pankso@3107 | 43 # Remove alsaconf (use soundconf). |
pankso@32 | 44 rm $fs/usr/sbin/alsaconf |
pankso@32 | 45 } |
pankso@10774 | 46 |
pankso@10774 | 47 # Main alsa config (card name, volumes, etc) have moved upstream. So backup |
pankso@10774 | 48 # current one and reenable it after package install so user still have ther |
pankso@10774 | 49 # sound card and settings working. |
pankso@10774 | 50 pre_install() |
pankso@10774 | 51 { |
pankso@10774 | 52 if [ -f $1/etc/asound.state ]; then |
pankso@10774 | 53 mv $1/etc/asound.state /tmp |
pankso@10774 | 54 fi |
pankso@10774 | 55 } |
pankso@10774 | 56 |
pankso@10774 | 57 post_install() |
pankso@10774 | 58 { |
pankso@10774 | 59 if [ -f $1/tmp/asound.state ]; then |
pankso@10774 | 60 mv $1/tmp/asound.state $1/var/lib/alsa |
pankso@10774 | 61 fi |
pankso@10774 | 62 } |