# Contributor: Sodface # Maintainer: Sodface pkgname=lms-utils pkgver=9 pkgrel=0 _commit=206ddf23c7eb2cd2c2296c94fdff5784c0aaa8e7 _faad2_commit=7c9b00595ee14189f7f5ae765e63d09ca8c6892b pkgdesc="Utility applications for LMS" url="https://lyrion.org/" arch="all" license="GPL-2.0" makedepends="bash opusfile-dev xz" options="!fhs !check !strip" source=" $pkgname-$_commit.tar.gz::https://github.com/LMS-Community/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=" d7c5a5d5b6c84238d66e3b72929e8a960128c1aca5b15befcc92249f10044aabc658853c1a676a6f327f417ccea3a76f98a8953c9d1b56b122d4f4095979f3da lms-utils-206ddf23c7eb2cd2c2296c94fdff5784c0aaa8e7.tar.gz fa7d92ceab1c6ac5c5bc7e92463b64618bd6c82fe98b6489df4449ff7b9fd660e18a82d6845e9e08b92da49dc06ef98ac594ed493b77a615e747dcd6270c7a44 lms-utils-7c9b00595ee14189f7f5ae765e63d09ca8c6892b.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 "