wok-6.x annotate alsa-utils/receipt @ rev 24078
gst-plugins-bad, gst-plugins-good, gst-plugins-base-1.0: typo (!)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jul 08 16:53:11 2021 +0000 (2021-07-08) |
parents | 424067b64d10 |
children | 1931b321046f |
rev | line source |
---|---|
pankso@32 | 1 # SliTaz package receipt. |
pankso@32 | 2 |
pankso@32 | 3 PACKAGE="alsa-utils" |
mojo@23853 | 4 VERSION="1.2.2" |
pankso@177 | 5 CATEGORY="multimedia" |
al@19275 | 6 SHORT_DESC="Alsa sound system utilities and config tools." |
pankso@32 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@19275 | 9 WEB_SITE="http://www.alsa-project.org/" |
pankso@32 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
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 |
pascal@24066 | 18 current_version() |
pascal@24066 | 19 { |
pascal@24066 | 20 wget -O - ${WEB_SITE}wiki/Download 2>/dev/null | \ |
pascal@24066 | 21 sed '/alsa-utils-/!d;s|.*alsa-utils-||;s|.tar.*||;q' |
pascal@24066 | 22 } |
pascal@24066 | 23 |
pankso@32 | 24 # Rules to configure and make the package. |
pankso@32 | 25 compile_rules() |
pankso@32 | 26 { |
pankso@3001 | 27 ./configure \ |
pascal@3032 | 28 --disable-xmlto \ |
pankso@3001 | 29 $CONFIGURE_ARGS && |
pascal@1447 | 30 make && |
slaxemulator@12361 | 31 make DESTDIR=$DESTDIR install |
pankso@32 | 32 } |
pankso@32 | 33 |
pankso@32 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@32 | 35 genpkg_rules() |
pankso@32 | 36 { |
pankso@13627 | 37 mkdir -p $fs/usr/share/alsa $fs/var/lib/alsa $fs/etc |
pankso@13627 | 38 #touch $fs/etc/asound.state |
pankso@13627 | 39 cp -a $install/usr/bin $fs/usr |
pankso@13627 | 40 cp -a $install/usr/sbin $fs/usr |
pankso@13627 | 41 cp -a $install/usr/share/alsa/init $fs/usr/share/alsa |
slaxemulator@14608 | 42 |
pankso@13627 | 43 # Declare asound.state |
pankso@10774 | 44 touch $fs/var/lib/alsa/asound.state |
pankso@32 | 45 chmod 755 $fs/usr/sbin/* |
pankso@256 | 46 # Remove speaker-test (18 Ko and needs sounds) |
pankso@256 | 47 rm $fs/usr/bin/speaker-test |
pankso@32 | 48 # For conf we need /var/tmp |
pankso@32 | 49 mkdir -p $fs/var/tmp |
pankso@32 | 50 chmod 1777 $fs/var/tmp |
pankso@3107 | 51 # Remove alsaconf (use soundconf). |
pankso@32 | 52 rm $fs/usr/sbin/alsaconf |
pankso@32 | 53 } |
pankso@10774 | 54 |
pankso@10774 | 55 # Main alsa config (card name, volumes, etc) have moved upstream. So backup |
pankso@10774 | 56 # current one and reenable it after package install so user still have ther |
pankso@10774 | 57 # sound card and settings working. |
pankso@10774 | 58 pre_install() |
pankso@10774 | 59 { |
pascal@18730 | 60 if [ -f "$1/etc/asound.state" ]; then |
pascal@18730 | 61 mv "$1/etc/asound.state" "$1/tmp" |
pankso@10774 | 62 fi |
pankso@10774 | 63 } |
pankso@10774 | 64 |
pankso@10774 | 65 post_install() |
pankso@10774 | 66 { |
pascal@18730 | 67 if [ -f "$1/tmp/asound.state" ]; then |
pascal@18730 | 68 mv "$1/tmp/asound.state" "$1/var/lib/alsa" |
pankso@10774 | 69 fi |
pankso@10774 | 70 } |