mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
fix introduced RPATH regression /usr/lib/alsa-topology/libalsatplg_module_nhlt.so /usr/bin/alsatplg /usr/bin/alsaucm /usr/bin/amixer /usr/bin/aplay /usr/bin/axfer /usr/bin/nhlt-dmic-info /usr/bin/speaker-test /usr/sbin/alsactl RUNPATH Library runpath: [/build/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/lib]
46 lines
1.7 KiB
Makefile
46 lines
1.7 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="alsa-utils"
|
|
PKG_VERSION="1.2.10"
|
|
PKG_SHA256="104b62ec7f02a7ce16ca779f4815616df1cc21933503783a9107b5944f83063a"
|
|
PKG_LICENSE="GPL"
|
|
PKG_SITE="https://www.alsa-project.org/"
|
|
PKG_URL="https://www.alsa-project.org/files/pub/utils/alsa-utils-${PKG_VERSION}.tar.bz2"
|
|
PKG_DEPENDS_TARGET="toolchain alsa-lib ncurses systemd"
|
|
PKG_LONGDESC="This package includes the utilities for ALSA, like alsamixer, aplay, arecord, alsactl, iecset and speaker-test."
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-alsaconf \
|
|
--disable-alsaloop \
|
|
--enable-alsatest \
|
|
--disable-bat \
|
|
--disable-dependency-tracking \
|
|
--disable-nls \
|
|
--disable-rst2man \
|
|
--disable-xmlto"
|
|
|
|
post_configure_target() {
|
|
libtool_remove_rpath libtool
|
|
}
|
|
|
|
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
|
|
|
|
mkdir -p ${INSTALL}/.noinstall
|
|
for i in aconnect alsamixer amidi aplaymidi arecord arecordmidi aseqdump aseqnet iecset; do
|
|
mv ${INSTALL}/usr/bin/${i} ${INSTALL}/.noinstall
|
|
done
|
|
|
|
mkdir -p ${INSTALL}/usr/lib/udev
|
|
cp ${PKG_DIR}/scripts/soundconfig ${INSTALL}/usr/lib/udev
|
|
}
|