# Contributor: Sodface # Contributor: Ralph Irving # Maintainer: Sodface pkgname=squeezelite pkgver=2.0.0.1481 _commit=c751ef146265c243cdbd7c0353dd0b70ab51730c pkgrel=1 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="-DLINKALL -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=" e3dfd765c6661548ba47d1025cce3ec3f7a87022be0e4ebfc0101045db2706e3864c3b916ff7b22c8e7de7722bdb4becd330efd585e222d36863752c7791d5b7 squeezelite-c751ef146265c243cdbd7c0353dd0b70ab51730c.tar.gz dd2af05993bcf72b01c5d1f90b98d36a8a43f00da43f64fc78bf1431ddd406d33dee22816f633b4f8743e45884f0691b94fda1db10b7cfb22d157a8d6a37a12d squeezelite.confd 3d29ca3d1a1a68beaa0f79aa2913d8c853a7700eff7bede8c4c4aebe8659a4cd974ed5577a63cfea4f9086b3fdb01c7b978531cba940283a133b3871fea9deb8 squeezelite.initd "