smlinux/base/flac/flac.SMBuild

41 lines
852 B
Text
Executable file

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=flac
version=1.3.3
build=1sml
homepage="https://xiph.org/flac/index.html"
download="https://ftp.osuosl.org/pub/xiph/releases/flac/flac-$version.tar.xz"
desc="Open-source lossless audio codec"
requires="libogg"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
if [[ $arch == "aarch64" ]] ; then
sseopts="--disable-sse"
else
sseopts="--enable-sse"
fi
./configure \
--prefix="" \
--docdir="/share/doc/$app-$version" \
$sseopts
make
make install DESTDIR=$pkg
cp COPYING* $pkgdocs/
mkfinalpkg
}
sha512sums="
18c8cf06afe739717331f00bacf1339694855d2870b1a2c47d7721f2e1fcd7ccc432518be1bdde10f68484d9abbc19f229759acf15b44b7aa2caf79ca810f7ad flac-1.3.3.tar.lz
"