wok view alsa-utils/receipt @ rev 22756
updated ffmpeg, ffmpeg-dev and ffplay (4.1.3 -> 4.2.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jan 24 16:20:17 2020 +0100 (2020-01-24) |
parents | 11b5e93cb5f2 |
children | 424067b64d10 |
line source
1 # SliTaz package receipt.
3 PACKAGE="alsa-utils"
4 VERSION="1.1.5"
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 # Rules to configure and make the package.
19 compile_rules()
20 {
21 ./configure \
22 --disable-xmlto \
23 $CONFIGURE_ARGS &&
24 make &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/share/alsa $fs/var/lib/alsa $fs/etc
32 #touch $fs/etc/asound.state
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/sbin $fs/usr
35 cp -a $install/usr/share/alsa/init $fs/usr/share/alsa
37 # Declare asound.state
38 touch $fs/var/lib/alsa/asound.state
39 chmod 755 $fs/usr/sbin/*
40 # Remove speaker-test (18 Ko and needs sounds)
41 rm $fs/usr/bin/speaker-test
42 # For conf we need /var/tmp
43 mkdir -p $fs/var/tmp
44 chmod 1777 $fs/var/tmp
45 # Remove alsaconf (use soundconf).
46 rm $fs/usr/sbin/alsaconf
47 }
49 # Main alsa config (card name, volumes, etc) have moved upstream. So backup
50 # current one and reenable it after package install so user still have ther
51 # sound card and settings working.
52 pre_install()
53 {
54 if [ -f "$1/etc/asound.state" ]; then
55 mv "$1/etc/asound.state" "$1/tmp"
56 fi
57 }
59 post_install()
60 {
61 if [ -f "$1/tmp/asound.state" ]; then
62 mv "$1/tmp/asound.state" "$1/var/lib/alsa"
63 fi
64 }