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