# Contributor: Sodface # Contributor: Ralph Irving # Maintainer: Sodface pkgname=squeezelite pkgver=1.9.9.1419 _commit=226efa300c4cf037e8486bad635e9deb3104636f 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 libalac-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 load-libtremor-first.patch $pkgname.confd $pkgname.initd alps-slimproto.c.patch " builddir="$srcdir/$pkgname-$_commit" build() { make OPTS="-DRESAMPLE -DDSD -DGPIO -DVISEXPORT -DUSE_SSL -DNO_SSLSYM -DOPUS -DALAC -DIR -I/usr/include/opus -I/usr/include/alac" 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=" 5a64412d270fc724963d533f0b9d89d335ad1458d747ab0c1f58aeac9088f16cb8ffc4d5a2189d4aeee9165d3cb2bd9efd2768a67d409949e0e1c60a45131a22 squeezelite-226efa300c4cf037e8486bad635e9deb3104636f.tar.gz 93d7695abb0bf670590cef73c2d9d484771e63acca39864b60cd819bf4b42fff87f9a82f7d419acce469c493d6bedfaba1207e646dde151bc76af959874f16cd load-libtremor-first.patch ff552fcbbbf2b2291958fa1c61057f54ba0d9b19620666036dd1e19897b5d7bcc543c40699c3ee53b2eec7a38b9cf46cb9205c2048f7d5488c23085d9904f114 squeezelite.confd 3d29ca3d1a1a68beaa0f79aa2913d8c853a7700eff7bede8c4c4aebe8659a4cd974ed5577a63cfea4f9086b3fdb01c7b978531cba940283a133b3871fea9deb8 squeezelite.initd e06146e8ec596e43e597c7f8f5db4f9a648fef9deeb950c40c50a0e431adc58e0be79b881006f689e112fa06e0df9f9a67b981eac0c1a4c0124de4918c7fe553 alps-slimproto.c.patch "