From 52e05295dfe134f6d8aff1cb9406ad2b89aed67a Mon Sep 17 00:00:00 2001 From: aurelien Date: Thu, 6 Feb 2014 17:02:01 +0100 Subject: + ums --- pcr/ums/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pcr/ums/PKGBUILD (limited to 'pcr') diff --git a/pcr/ums/PKGBUILD b/pcr/ums/PKGBUILD new file mode 100644 index 000000000..329120adb --- /dev/null +++ b/pcr/ums/PKGBUILD @@ -0,0 +1,63 @@ +# Contributor: Red Squirrel +# Maintainer : Parabola Aurélien DESBRIÈRES +# Based on PMS PKGBUILD + +pkgname=ums +pkgver=3.4.0 +pkgrel=1 +pkgdesc="Universal Media Server: a DLNA-compliant UPnP Media Server." +arch=('i686' 'x86_64') +url="http://www.universalmediaserver.com/" +license=('GPL2') +depends=('mplayer' 'ffmpeg' 'mencoder' 'libmediainfo' 'java-runtime') +makedepends=("unzip") +[ "$CARCH" = "i686" ] && \ +optdepends=("vlc: For Internet video/audio") +[ "$CARCH" = "x86_64" ] && \ +optdepends=("vlc: Internet video/audio support" + "lib32-gcc-libs: tsMuxeR support" + "lib32-glibc: tsMuxeR support") +backup=(opt/ums/UMS.conf \ + opt/ums/WEB.conf) +source=("http://downloads.sourceforge.net/project/unimediaserver/Official%20Releases/Linux/UMS-$pkgver.tgz") + +package() { + mkdir -p $pkgdir/opt/ums + mkdir $pkgdir/opt/ums/database + mkdir -p $pkgdir/usr/bin + chmod -R 755 $srcdir/$pkgname-$pkgver/plugins $srcdir/$pkgname-$pkgver/documentation + cp -r $srcdir/$pkgname-$pkgver/* $pkgdir/opt/ums/ + chmod +x $pkgdir/opt/ums/UMS.sh \ + $pkgdir/opt/ums/linux/tsMuxeR + touch $pkgdir/opt/ums/UMS.conf + touch $pkgdir/opt/ums/debug.log + chgrp users $pkgdir/opt/ums/UMS.conf \ + $pkgdir/opt/ums/WEB.conf \ + $pkgdir/opt/ums/debug.log \ + $pkgdir/opt/ums/database + + chmod g+w $pkgdir/opt/ums/UMS.conf \ + $pkgdir/opt/ums/WEB.conf \ + $pkgdir/opt/ums/debug.log \ + $pkgdir/opt/ums/database + + unzip -q -u $srcdir/$pkgname-$pkgver/ums.jar -d ums_jar + install -d -m 755 $pkgdir/usr/share/pixmaps + install -D -m 644 $srcdir/ums_jar/resources/images/logo.png $pkgdir/usr/share/pixmaps/ums.png + + cat > ums.desktop << EoF +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=Universal Media Server +Comment=A DLNA-compliant UPnP Media Server. +Exec=/opt/ums/UMS.sh +Icon=ums.png +Terminal=false +Type=Application +Categories=Java;Multimedia;AudioVideo; +EoF + + install -D -m 644 $srcdir/ums.desktop $pkgdir/usr/share/applications/ums.desktop + +} -- cgit v1.2.3-2-g168b