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