# Contributor: Sodface # Contributor: Ralph Irving # Maintainer: Sodface pkgname=squeezelite pkgver=2.0.0.1486 _commit=fd4a82e7d0e53124d9618320f3c115d90654509d pkgrel=0 pkgdesc="Lightweight headless squeezebox player for Logitech Media Server" url="https://github.com/ralph-irving/squeezelite" arch="all" license="GPL-3.0-or-later" options="!check" # No test suite depends=" alsa-lib faad2 flac libvorbis libmad lirc mpg123 openssl opusfile soxr " makedepends=" alsa-lib-dev faad2-dev flac-dev libmad-dev libvorbis-dev lirc-dev mpg123-dev opus-dev opusfile-dev openssl-dev soxr-dev " install="$pkgname.pre-install" subpackages="$pkgname-doc $pkgname-openrc" source=" $pkgname-$_commit.tar.gz::https://github.com/ralph-irving/squeezelite/archive/$_commit/squeezelite-$_commit.tar.gz $pkgname.confd $pkgname.initd " builddir="$srcdir/$pkgname-$_commit" build() { make OPTS="-DRESAMPLE -DDSD -DGPIO -DVISEXPORT -DUSE_SSL -DNO_SSLSYM -DOPUS -DIR -I/usr/include/opus" gcc -Os -fomit-frame-pointer -fcommon -s -o find_servers tools/find_servers.c gcc -Os -fomit-frame-pointer -fcommon -s -o alsacap tools/alsacap.c -lasound } package() { install -Dm 755 squeezelite \ "$pkgdir"/usr/bin/squeezelite install -Dm 755 alsacap \ "$pkgdir"/usr/bin/alsacap install -Dm 755 find_servers \ "$pkgdir"/usr/bin/find_servers install -Dm 644 doc/squeezelite.1 \ "$pkgdir"/usr/share/man/man1/squeezelite.1 install -Dm 644 "$srcdir"/squeezelite.confd \ "$pkgdir"/etc/conf.d/squeezelite install -Dm 755 "$srcdir"/squeezelite.initd \ "$pkgdir"/etc/init.d/squeezelite } sha512sums=" e99d6a9a40506f87c3cb60acc9162a697d62052e7430f0c2755708bde224466005792a522cea2f6d815d844342adb1d643ea40057c9137ce9a036a538a28fac4 squeezelite-fd4a82e7d0e53124d9618320f3c115d90654509d.tar.gz dd2af05993bcf72b01c5d1f90b98d36a8a43f00da43f64fc78bf1431ddd406d33dee22816f633b4f8743e45884f0691b94fda1db10b7cfb22d157a8d6a37a12d squeezelite.confd 3d29ca3d1a1a68beaa0f79aa2913d8c853a7700eff7bede8c4c4aebe8659a4cd974ed5577a63cfea4f9086b3fdb01c7b978531cba940283a133b3871fea9deb8 squeezelite.initd "