diff options
author | aurelien <aurelien@xload.io> | 2014-02-06 17:02:01 +0100 |
---|---|---|
committer | aurelien <aurelien@xload.io> | 2014-02-06 17:02:01 +0100 |
commit | 52e05295dfe134f6d8aff1cb9406ad2b89aed67a (patch) | |
tree | cf08aaad929f03b72ebf832a481bc6a004d1d72a /pcr/ums/PKGBUILD | |
parent | 47e8cfeaaca88f26d78ffae21a7fd5eb1fa682cf (diff) |
+ ums
Diffstat (limited to 'pcr/ums/PKGBUILD')
-rw-r--r-- | pcr/ums/PKGBUILD | 63 |
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 + +} |