1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Maintainer: Stefan Sielaff <aur AT stefan-sielaff DOT de>
pkgname=logitechmediaserver-bin
pkgver=9.0.0
pkgrel=1
pkgdesc="Slimserver for Logitech Squeezebox players. This server is also called Logitech Media Server)"
arch=(i686 x86_64 arm armv6h armv7h aarch64)
url="https://github.com/Logitech/slimserver"
license=(GPL custom)
depends=(perl)
install=logitechmediaserver.install
options=(!strip)
source=("https://downloads.lms-community.org/LyrionMusicServer_v${pkgver}/lyrionmusicserver-${pkgver}.tgz"
'logitechmediaserver-bin.service')
sha256sums=('aea9bb5f00bce5b95753c08d4540d87aa396e500375144e81a0c909cb8a8bafa'
'47e79654df21e4f16274966d4fbc41978ebfac69e987da7d9f30bb0f98ec9d01')
prepare() {
cd "lyrionmusicserver-${pkgver}/Bin"
rm -rf MSWin32-x86-multi-thread darwin darwin-x86_64 i386-freebsd-64int i86pc-solaris-thread-multi-64int powerpc-linux sparc-linux
case $CARCH in
x86_64) rm -rf {arm,armhf,aarch64,i386}-linux ;;
i686) rm -rf {arm,armhf,aarch64,x86_64}-linux ;;
aarch64) rm -rf {i386,x86_64,arm,armhf}-linux ;;
arm*) rm -rf {i386,x86_64,aarch64}-linux ;;
esac
}
package() {
install -Dm644 logitechmediaserver-bin.service -t "${pkgdir}/usr/lib/systemd/system/"
cd "lyrionmusicserver-${pkgver}"
install -d "${pkgdir}"/{opt,usr/share/licenses}/"${pkgname}"
ln -s "/opt/${pkgname}/License.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# remove old perl modules
cd "${srcdir}/lyrionmusicserver-${pkgver}/CPAN/arch"
rm -rf {5.10,5.12,5.14,5.16,5.16,5.18,5.20,5.22,5.24,5.26,5.28,5.30,5.32,5.34,5.36,5.38}
cd "${srcdir}/lyrionmusicserver-${pkgver}"
cp -a * "${pkgdir}/opt/${pkgname}"
mkdir -p "${pkgdir}"/opt/logitechmediaserver-bin/{cache,Logs,prefs{,/plugin},Plugins}
}
|