wok-current annotate alsa-utils/receipt @ rev 3001
Up: alsa* (1.0.20)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 11 21:51:38 2009 +0200 (2009-05-11) |
parents | 7a436db659a4 |
children | 1d5cffc23ba7 |
rev | line source |
---|---|
pankso@32 | 1 # SliTaz package receipt. |
pankso@32 | 2 |
pankso@32 | 3 PACKAGE="alsa-utils" |
pankso@3001 | 4 VERSION="1.0.20" |
pankso@177 | 5 CATEGORY="multimedia" |
pankso@32 | 6 SHORT_DESC="Alsa sound system utilities et config tools." |
pankso@32 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@2491 | 8 DEPENDS="alsa-lib ncurses" |
pascal@1447 | 9 BUILD_DEPENDS="alsa-lib alsa-lib-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" |
pascal@1634 | 13 CONFIG_FILES="/etc/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 |
erjo@1835 | 19 # Remove xmlto dependency |
pankso@3001 | 20 #patch -p1 -i ../stuff/alsactl-no-xmlto.patch && |
pankso@3001 | 21 ./configure \ |
pankso@3001 | 22 --prefix=/usr \ |
pankso@3001 | 23 --infodir=/usr/share/info \ |
pankso@3001 | 24 --mandir=/usr/share/man \ |
pankso@3001 | 25 $CONFIGURE_ARGS && |
pascal@1447 | 26 make && |
pankso@32 | 27 make DESTDIR=$PWD/_pkg 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@1057 | 33 mkdir -p $fs/usr $fs/etc |
pankso@32 | 34 cp -a $_pkg/usr/bin $fs/usr |
pankso@32 | 35 cp -a $_pkg/usr/sbin $fs/usr |
pankso@1057 | 36 touch $fs/etc/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@256 | 43 # Remove alsaconf (use soundconf) + Getopt precomp needed by soundconf. |
pankso@32 | 44 rm $fs/usr/sbin/alsaconf |
pankso@32 | 45 install -g root -o root -m 0755 stuff/getopt $fs/usr/bin |
pankso@32 | 46 } |