smlinux/base/alsa-lib/alsa-lib.SMBuild

54 lines
1.4 KiB
Text
Executable file

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=alsa-lib
version=1.2.3.1
build=1sml
homepage="http://alsa-project.org"
download=""
desc="Advanced Linux Sound Architecture provides audio and MIDI functionality for Linux"
requires="musl"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z**
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/remove-test.patch
}
build() {
./configure \
--prefix="" \
--disable-python \
--disable-static \
--disable-resmgr \
--enable-seq \
--enable-aload \
--disable-dependency-tracking \
--without-versioned
make
make install DESTDIR=$pkg
cp COPYING $pkgdocs/
( cd $pkg
mv share/alsa/alsa.conf share/alsa/alsa.conf.new
# create a blank asound.conf.new
mkdir -p etc ; touch etc/asound.conf.new
)
if [ "$arch" = "aarch64" ]; then
# Provide some sample conf files for using USB audio by overwriting the above file
cp $srcdir/alsa.conf.rpi.usbaudio $pkg/share/alsa/alsa.conf.new
cp $srcdir/asound.conf.rpi $pkg/etc/asound.conf.new
fi
mkfinalpkg
}
sha512sums="
2f094b25f77c32d53f6b1499b365fa345e844a57773bcae287920b0a03557c3af38233eb2155515945f3015c80b85fbc54121bd59ccf842a3dbb13c2ea9adbde alsa-lib-1.2.3.1.tar.lz
e15318431fe2d5bd1e42ef793f223e3e5995890d7befe6daa3d7456ccf5cb2f51eb79171539cecae13032a9b8a798ea35e04c89b27c7ef9567e2c03fb8db4512 remove-test.patch
"