blob: ce46cb580e0ee57a2b14adb8ed9b9bdbb4b72b6a (
plain)
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
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Stefan Sielaff <aur AT stefan-sielaff DOT de>
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Gaetan Bisson <bisson@archlinux.org>
pkgname=logitechmediaserver
pkgver=8.5.2
pkgrel=1
pkgdesc='Slimserver for Logitech Squeezebox players. This server is also called Logitech Media Server. (Release-Version, if you prefer bleeding edge consider using logitechmediaserver-git instead)'
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url='https://github.com/LMS-Community/slimserver'
license=('GPL' 'custom')
depends=('perl' 'perl-io-socket-ssl')
makedepends=('nasm' 'yasm' 'rsync' 'gd' 'zlib')
optdepends_x86_64=('lib32-glibc: transcoding on 64-bit systems' 'lib32-gcc-libs: transcoding on 64-bit systems')
makedepends_aarch64=('wget')
install=logitechmediaserver.install
_vendorver=8.4
source=("slimserver-${pkgver}.tar.gz::https://github.com/LMS-Community/slimserver/archive/${pkgver}.tar.gz"
"slimserver-vendor-public-${_vendorver}.tar.gz::https://github.com/LMS-Community/slimserver-vendor/archive/public/${_vendorver}.tar.gz"
'logitechmediaserver.service')
sha256sums=('6de4ac0e100707127acf7adaf60ce38142ba313937b00ba5b535e3ee883ebc42'
'f79a10339eaf56d6abdfae64d11594a5f1bd92f11cc70b31663d8957f98a6664'
'1b89638a18511e02a298bde20bb6a6608d92fd4c1ec89028475bd569e324cb67')
prepare() {
cd "${srcdir}/slimserver-${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}-linux ;;
i686) rm -rf {arm,armhf,aarch64}-linux ;;
aarch64) rm -rf {i386,x86_64,arm,armhf}-linux ;;
arm*) rm -rf {i386,x86_64,aarch64}-linux ;;
esac
cd "${srcdir}/slimserver-${pkgver}/CPAN"
rm -rf arch
cd "${srcdir}/slimserver-${pkgver}/lib"
rm -rf Audio
}
build() {
cd "${srcdir}/slimserver-vendor-public-${_vendorver}/CPAN"
sed -i "/cd giflib-4.1.6/a sed -i '/#include \"gif_lib_private.h\"/a #include <stdlib.h>' lib/gif_hash.c" buildme.sh
sh buildme.sh -t
}
package() {
cd "${srcdir}"
install -Dm644 logitechmediaserver.service -t "${pkgdir}/usr/lib/systemd/system/"
cd "${srcdir}/slimserver-${pkgver}"
install -d "${pkgdir}"/{opt,usr/share/licenses}/"${pkgname}" && ln -s "/opt/${pkgname}/License.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
cp -a * "${pkgdir}/opt/${pkgname}"
cd "${srcdir}/slimserver-vendor-public-${_vendorver}"
cp -a CPAN/build/5.*/lib/*/*linux*/* "${pkgdir}/opt/${pkgname}/CPAN"
printf "ARCH-AUR.%s\n%s" "${pkgver}" "$(date)" > "${pkgdir}/opt/${pkgname}/revision.txt"
}
|