wok-next view alsa-utils/receipt @ rev 19854

Up alsa-utils, cookutils, lxsession, slitaz-i18n, terminus-font.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Sep 04 02:20:25 2017 +0300 (2017-09-04)
parents 2e9df1b30cc2
children 6d173c4b9591
line source
1 # SliTaz package receipt v2.
3 PACKAGE="alsa-utils"
4 VERSION="1.1.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="Command line utilities for the ALSA project"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.alsa-project.org/"
10 HOST_ARCH="i486 arm"
11 LFS="http://www.linuxfromscratch.org/blfs/view/stable/multimedia/alsa-utils.html"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WGET_URL="ftp://ftp.alsa-project.org/pub/utils/$TARBALL"
16 BUILD_DEPENDS="alsa-lib-dev ncurses-dev gettext eudev-dev"
17 SPLIT="alsa-utils-test alsa-info alsa-utils"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --disable-alsaconf \
24 --disable-bat \
25 --disable-xmlto \
26 --with-curses=ncursesw \
27 $CONFIGURE_ARGS &&
28 make && make install || return 1
30 # Remove empty dir
31 rmdir $install/usr/share/man/man7
33 appdir=$install/usr/share/applications
34 mkdir -p $appdir
35 cp $stuff/alsamixer.desktop $appdir
37 # Declare asound.state
38 touch $install/var/lib/alsa/asound.state
40 # For conf we need /var/tmp
41 mkdir -p $install/var/tmp
42 chmod 1777 $install/var/tmp
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 case $PACKAGE in
49 alsa-utils-test)
50 copy speaker-test speaker-test/ *.wav
51 CAT="multimedia|speaker test"
52 DEPENDS="alsa-lib"
53 ;;
54 alsa-info)
55 copy alsa-info.sh
56 CAT="multimedia|gather ALSA subsystem information"
57 DEPENDS="alsa-utils bash dialog ncurses-extra pciutils wget"
58 ;;
59 alsa-utils)
60 copy @std
61 remove_already_packed
62 DEPENDS="alsa-lib ncurses ncurses-libform ncurses-libmenu \
63 ncurses-libpanel"
64 CONFIG_FILES="/var/lib/alsa/asound.state"
65 ;;
66 esac
67 }