smlinux/base/alsa-lib/alsa-lib.SMBuild
PktSurf 1ddfe9abba * Fixed indentation in base/docbook build file
* Replaced patch command with applypatch function in multiple build files in base, xorg, gtk, extra and xfce sections
2022-02-23 23:21:55 +05:30

53 lines
1.4 KiB
Text
Executable file

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"
build() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z**
cd $app-$version
fixbuilddirpermissions
applypatch $srcdir/remove-test.patch
./configure \
--prefix="" \
--sysconfdir=/etc \
--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="
ed0a81371117a91a5024f3bef5a881ffa9521399eab5e016924669a3f1eba2d6a02efa284b160089bc581717d39d15325ebb2faf162e4d3dabe4c29785a5fb58 alsa-lib-1.2.3.1.tar.bz2
e15318431fe2d5bd1e42ef793f223e3e5995890d7befe6daa3d7456ccf5cb2f51eb79171539cecae13032a9b8a798ea35e04c89b27c7ef9567e2c03fb8db4512 remove-test.patch
"