summaryrefslogtreecommitdiff
path: root/pcr/ums/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-02-06 16:55:33 -0200
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-02-06 16:55:33 -0200
commitbe7bcd5b4dc84932918b7c9afea7c744b16d2be8 (patch)
tree712a667adee4890a1e87147955f5445b58d4370a /pcr/ums/PKGBUILD
parentda425e1398bacd8f90603cbdec07d111f6be8f7a (diff)
parent52e05295dfe134f6d8aff1cb9406ad2b89aed67a (diff)
downloadabslibre-be7bcd5b4dc84932918b7c9afea7c744b16d2be8.tar.gz
abslibre-be7bcd5b4dc84932918b7c9afea7c744b16d2be8.tar.bz2
abslibre-be7bcd5b4dc84932918b7c9afea7c744b16d2be8.zip
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/ums/PKGBUILD')
-rw-r--r--pcr/ums/PKGBUILD63
1 files changed, 63 insertions, 0 deletions
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 <iam at redsquirrel87 dot com>
+# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@xload.io>
+# 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
+
+}