Files
Arch-R/packages/audio/alsa-utils/package.mk
2018-05-25 23:49:23 +02:00

57 lines
2.4 KiB
Makefile

################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2016-present Team LibreELEC
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="alsa-utils"
PKG_VERSION="1.1.6"
PKG_SHA256="155caecc40b2220f686f34ba3655a53e3bdbc0586adb1056733949feaaf7d36e"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.alsa-project.org/"
PKG_URL="ftp://ftp.alsa-project.org/pub/utils/alsa-utils-$PKG_VERSION.tar.bz2"
PKG_DEPENDS_TARGET="toolchain alsa-lib ncurses"
PKG_SECTION="audio"
PKG_LONGDESC="This package includes the utilities for ALSA, like alsamixer, aplay, arecord, alsactl, iecset and speaker-test."
PKG_CONFIGURE_OPTS_TARGET="--disable-alsaconf \
--disable-alsaloop \
--enable-alsatest \
--disable-bat \
--disable-dependency-tracking \
--disable-nls \
--disable-rst2man \
--disable-xmlto"
post_makeinstall_target() {
rm -rf $INSTALL/lib $INSTALL/var
rm -rf $INSTALL/usr/share/alsa/speaker-test
rm -rf $INSTALL/usr/share/sounds
rm -rf $INSTALL/usr/lib/systemd/system
# remove default udev rule to restore mixer configs, we install our own.
# so we avoid resetting our soundconfig
rm -rf $INSTALL/usr/lib/udev/rules.d/90-alsa-restore.rules
for i in aconnect alsamixer alsaucm amidi aplaymidi arecord arecordmidi aseqdump aseqnet iecset; do
rm -rf $INSTALL/usr/bin/$i
done
mkdir -p $INSTALL/usr/lib/udev
cp $PKG_DIR/scripts/soundconfig $INSTALL/usr/lib/udev
}