# Contributor: Sodface # Maintainer: Sodface pkgname=lms-utils pkgver=8 pkgrel=7 _commit=ba0ae7b22415d361f147463be1c7139f7954a7bb _faad2_commit=8cde9ff6dfc63f1c8d334790eef471a6a7393fcd pkgdesc="Utility applications for LMS." url="https://github.com/Logitech/slimserver-vendor" arch="all" license="GPL-2.0" makedepends="bash opusfile-dev xz" options="!fhs !check !strip" source=" $pkgname-$_commit.tar.gz::https://github.com/Logitech/slimserver-vendor/archive/$_commit/slimserver-vendor-$_commit.tar.gz $pkgname-$_faad2_commit.tar.gz::https://github.com/ralph-irving/faad2/archive/$_faad2_commit/faad2-$_faad2_commit.tar.gz sox-formats.c.patch.tar.gz 010-flac-buildme-linux.sh.patch 020-sox-buildme-linux.sh.patch 030-wvunpack-build.sh.patch " builddir="$srcdir/slimserver-vendor-$_commit" build() { cd alac_decoder && make && strip alac cd ../flac && ./buildme-linux.sh cd ../wavpack && ./build.sh cd ../sox && ./buildme-linux.sh cd "$srcdir/faad2-$_faad2_commit" ./configure --with-mpeg4ip --enable-static --disable-shared make mkdir build && make DESTDIR=$(pwd)/build install strip build/usr/local/bin/faad } package() { mkdir -p "$pkgdir"/opt/lms/Bin install -m755 "$builddir"/alac_decoder/alac "$pkgdir"/opt/lms/Bin install -m755 "$builddir"/flac/flac-build-*/bin/flac "$pkgdir"/opt/lms/Bin install -m755 "$builddir"/wavpack/wvunpack "$pkgdir"/opt/lms/Bin install -m755 "$builddir"/sox/sox-build-*/bin/sox "$pkgdir"/opt/lms/Bin install -m755 "$srcdir/faad2-$_faad2_commit"/build/usr/local/bin/faad "$pkgdir"/opt/lms/Bin } sha512sums=" dbc1588bf8c83beac259ee427537cfe341df28bc1410504f7e28f3cdb84bc39c21d2389c6165e40a53e0879ecb274b74443ca13a0c958b973b2654dfc5b2c368 lms-utils-ba0ae7b22415d361f147463be1c7139f7954a7bb.tar.gz e5145e88bb77503d2e3fa9a22e3873a65651364cdcd78e7fdefacdb571076e14d4d101f39b6a1ede580cfa1334362b1b1b811429bff54d1406ee07f9d0c4e694 lms-utils-8cde9ff6dfc63f1c8d334790eef471a6a7393fcd.tar.gz 756c918126a639d999d8887bef6c5f89cd0b5d4320f25278beddd78d08d31d285f3c77423b955e8d6cc8f6c3afe141f6afc44ee1f34035f4abdafa797c3c8a8e sox-formats.c.patch.tar.gz b9e91763829f9f6540d958e0d9b1cebe14035e78516b3b2057ba0abe9826c6ddfe89ccdf3b4b2e0db11aaf56a9e1b6649d269d6b24ad0c573293b33edf8931b6 010-flac-buildme-linux.sh.patch 9c57776322876923c856ab40a19a039683c512ba240cd755c61f6565355a490e69889d8e681f23675a979b99fbbe3e53543571004637f2b4dcd187df78f0d257 020-sox-buildme-linux.sh.patch f48e3065d8653032c28b3f4c8dae6ad4772fea568b7f61fee962fbf201b2fe9feada5cbfff5acf6d34f8c731c50339e92404660d5cca28795f26b5f0438fe46e 030-wvunpack-build.sh.patch "