summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD74
1 files changed, 44 insertions, 30 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 527ebbafb53..39592a786e3 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,44 +1,58 @@
-# Maintainer: Daniel Seymour <dannyseeless at gmail dot com>
+# Maintainer: Bjorn Nostvold <bjorn.nostvold@gmail.com>
+# Contributor: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: Daniel Seymour <dannyseeless@gmail.com>
pkgname=emby-server-beta
-pkgver=3.0.5641.4
-_commit=f35263111847d9f8b7679104fd52e34db00f542a
+pkgver=3.1.74
pkgrel=1
-pkgdesc="Emby Server is a home media server built using other popular open source technologies."
-arch=('i686' 'x86_64' 'armv6h')
-url="http://emby.media"
-license=('GPL')
-groups=()
-depends=('mono' 'libmediainfo' 'sqlite' 'ffmpeg' 'imagemagick')
-makedepends=('imagemagick')
-optdepends=()
-conflicts=('emby-server' 'emby-server-git' 'mediabrowser-server'
- 'mediabrowser-server-beta' 'mediabrowser-server-git')
+pkgdesc='Bring together your videos, music, photos, and live television'
+arch=('i686' 'x86_64')
+url='http://emby.media'
+license=('GPL2')
+depends=('ffmpeg' 'imagemagick' 'mono' 'sqlite')
provides=('emby-server')
-install=emby-server.install
-source=("https://github.com/MediaBrowser/MediaBrowser/archive/$_commit.tar.gz"
- "emby-server.service" "emby-server"
- "emby-server.conf")
+conflicts=('emby-server')
+install='emby-server.install'
+source=("emby-server-${pkgver}.tar.gz::https://github.com/MediaBrowser/Emby/archive/${pkgver}.tar.gz"
+ "emby-server"
+ "emby-migrate-database"
+ "emby-server.conf"
+ "emby-server.service")
backup=('etc/conf.d/emby-server')
-md5sums=('bd049dd1d1b965fdc449a7e919c358ea'
- '07948b362480a371c4be50c3b9854eeb'
- '69d0ebc1fff9c8ac2f5ff4a6db20ce42'
- '184f023f2a407be2fdd60b236e9f792e')
+sha256sums=('SKIP'
+ '7b1974f7bba8ac4b76e51ef7fe1257d165c7c4abbd0915e192391336048a3d74'
+ 'b25bf83a0ab371aff3b13b82f7af71b51bfe6d7e51eb8a8a3dd8f0774ffce6a5'
+ 'c9ad78f3e2f0ffcb4ee66bb3e99249fcd283dc9fee17895b9265dc733288b953'
+ '8a91ea49a1699c820c4a180710072cba1d6d5c10e45df97477ff6a898f4e1d70')
prepare() {
- MAGICKWAND=$(ldconfig -p | grep MagickWand.*.so$ | cut -d" " -f4)
- sed -i "s/libMagickWand-6.Q8.so/${MAGICKWAND##*/}/" ${srcdir}/MediaBrowser-$_commit/MediaBrowser.Server.Mono/ImageMagickSharp.dll.config
+ cd Emby-$pkgver
+
+ sed 's/libMagickWand-6.Q8.so/libMagickWand-6.Q16HDRI.so/' -i MediaBrowser.Server.Mono/ImageMagickSharp.dll.config
}
build(){
- cd ${srcdir}/MediaBrowser-$_commit
- xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" /p:OutputPath="${srcdir}/usr/lib/emby-server" /t:build MediaBrowser.Mono.sln
- rm -rf ${srcdir}/MediaBrowser-$_commit
+ cd Emby-$pkgver
+
+ xbuild \
+ /p:Configuration='Release Mono' \
+ /p:Platform='Any CPU' \
+ /p:OutputPath="${srcdir}/build" \
+ /t:build MediaBrowser.Mono.sln
+ mono --aot='full' -O='all' ../build/MediaBrowser.Server.Mono.exe
}
package() {
- install -Dm644 ${srcdir}/emby-server.conf ${pkgdir}/etc/conf.d/emby-server
- install -Dm755 ${srcdir}/emby-server ${pkgdir}/usr/bin/emby-server
- install -Dm644 ${srcdir}/emby-server.service ${pkgdir}/usr/lib/systemd/system/emby-server.service
- cp -r ${srcdir}/usr/lib/emby-server ${pkgdir}/usr/lib
+ install -dm 755 "${pkgdir}"/{etc/conf.d,usr/{bin,lib/systemd/system}}
+ cp -dr --no-preserve='ownership' build "${pkgdir}"/usr/lib/emby-server
+ find "${pkgdir}" -type f -name *.dylib -delete
+ install -m 755 emby-server "${pkgdir}"/usr/bin/
+ install -m 755 emby-migrate-database "${pkgdir}"/usr/bin/
+ install -m 644 emby-server.service "${pkgdir}"/usr/lib/systemd/system/
+ install -m 644 emby-server.conf "${pkgdir}"/etc/conf.d/emby-server
+
+ install -dm 755 "${pkgdir}"/var/lib/emby
+ chown 422:422 -R "${pkgdir}"/var/lib/emby
}
+
+# vim: ts=2 sw=2 et: