wok view alsa-utils/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 424067b64d10
children 1931b321046f
line source
1 # SliTaz package receipt.
3 PACKAGE="alsa-utils"
4 VERSION="1.2.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="Alsa sound system utilities and config tools."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.alsa-project.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="ftp://ftp.alsa-project.org/pub/utils/$TARBALL"
12 CONFIG_FILES="/var/lib/alsa/asound.state"
13 HOST_ARCH="i486 arm"
15 DEPENDS="alsa-lib ncurses util-linux-getopt"
16 BUILD_DEPENDS="alsa-lib-dev ncurses-dev"
18 current_version()
19 {
20 wget -O - ${WEB_SITE}wiki/Download 2>/dev/null | \
21 sed '/alsa-utils-/!d;s|.*alsa-utils-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --disable-xmlto \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/alsa $fs/var/lib/alsa $fs/etc
38 #touch $fs/etc/asound.state
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/sbin $fs/usr
41 cp -a $install/usr/share/alsa/init $fs/usr/share/alsa
43 # Declare asound.state
44 touch $fs/var/lib/alsa/asound.state
45 chmod 755 $fs/usr/sbin/*
46 # Remove speaker-test (18 Ko and needs sounds)
47 rm $fs/usr/bin/speaker-test
48 # For conf we need /var/tmp
49 mkdir -p $fs/var/tmp
50 chmod 1777 $fs/var/tmp
51 # Remove alsaconf (use soundconf).
52 rm $fs/usr/sbin/alsaconf
53 }
55 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
56 # current one and reenable it after package install so user still have ther
57 # sound card and settings working.
58 pre_install()
59 {
60 if [ -f "$1/etc/asound.state" ]; then
61 mv "$1/etc/asound.state" "$1/tmp"
62 fi
63 }
65 post_install()
66 {
67 if [ -f "$1/tmp/asound.state" ]; then
68 mv "$1/tmp/asound.state" "$1/var/lib/alsa"
69 fi
70 }