1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Daniel Seymour <dannyseeless@gmail.com>
9 pkgdesc='Bring together your videos, music, photos, and live television'
11 url=https://emby.media
55 'intel-media-sdk: Intel QuickSync support (requires Emby Premiere)'
56 'nvidia-utils: Nvidia NVDEC/NVENC support (requires Emby Premiere)'
59 https://github.com/MediaBrowser/Emby.Releases/releases/download/${pkgver}/embyserver-netcore_${pkgver}.zip
60 https://mediabrowser.github.io/embytools/ffmpeg-${_ffmpeg_ver}.tar.gz
61 https://mediabrowser.github.io/embytools/ffdetect-${_ffmpeg_ver}-x64.tar.xz
62 https://mediabrowser.github.io/embytools/libskiasharp-${_skiasharp_ver}-x64.tar.xz
67 Permission_to_distribute.mbox
69 noextract=(license.docx)
70 backup=(etc/conf.d/emby-server)
71 install=emby-server.install
72 b2sums=('700b1bcfe2f603ae1a5a16c1aa3dbc787d4a0d732734ad8f66443054a0718c64c6e4b1b83b508667409b9dab180ebb0e491e80a4603cd26d4a3af1f573aea77d'
73 '0cf98666f22cb08bc02c5a93eb3d73e50648468da8d73edbd1814d2b3ca599532e75f3b597ff770c40712c04a4d1af5ab66b6bb6779b35508dd9e007e66e575d'
74 '39dbe0033cf43c77c92ae7e1e6709ae1cb447e8d9654b8b1422658d86994db6e2d04f65311e5f1a9a078bdf533344c37f0ab8e07138bb1eabe7108d87a79c2a0'
75 '08ea6a632c7366fb4086d3f42c602e85603bc416ec7e0ea1e7d41814441889fc4858db0128a4e433965ca2d7427f43028864d936b40244b3896fa78102ac38c6'
76 '48c11601d00121e725951fd48ba34137804d4a67aa12528a29ca4d43d301d19311182421e96bef7b7ddbc4929dc9d5b577b1659cb0b716b1c1f6938283465c46'
77 '49c2e6a27f36a2e44a6b988573ee7d08bacb036008f5360ad1cb617b3d1577bdcd48a323ebb882e0f9ec4483962a96d8bd9af44385feb5245b49dfc191d73352'
78 '11cc26f44f81823bcd50ee16344aff94eb0a64d740a2e489d832bc8d48d11f3065bf683da243409bab8e3d8a201083596a27983cc11a90688128442e0116430c'
79 'e490c2ec7aff3deb9874a80345273c2aa435624b914a13fe8cba8f07ee44938699a024d0c6784fe68820d3a848cccf5af3f7120c7906356ed17d306fc31b6490'
80 '61ca54af95278f498b21b424b4d4bae98660b4b7898bfd9752fe21da20d7c508502014bc1970a60920f3064ca20b31b46ba2a788b3b1371f75b5278add70ffc4')
83 rm -rf system/{electron,runtimes/{osx,tizen*,win*}}
87 cd ffmpeg-${_ffmpeg_ver}_public
97 --enable-chromaprint \
103 --enable-libaribb24 \
107 --enable-libfreetype \
108 --enable-libfribidi \
110 --enable-libmp3lame \
112 --enable-libtesseract \
129 install -dm 755 "${pkgdir}"/usr/lib
130 cp -dr --no-preserve='ownership' system "${pkgdir}"/usr/lib/emby-server
131 install -Dm 755 emby-server -t "${pkgdir}"/usr/bin/
132 install -Dm 755 bin/ffdetect "${pkgdir}"/usr/bin/ffdetect-emby
133 install -Dm 755 ffmpeg-${_ffmpeg_ver}_public/ffmpeg "${pkgdir}"/usr/bin/ffmpeg-emby
134 install -Dm 755 ffmpeg-${_ffmpeg_ver}_public/ffprobe "${pkgdir}"/usr/bin/ffprobe-emby
135 install -Dm 755 lib/libSkiaSharp.so* -t "${pkgdir}"/usr/lib/emby-server/
136 install -Dm 644 emby-server.service -t "${pkgdir}"/usr/lib/systemd/system/
137 install -Dm 644 emby-server.conf "${pkgdir}"/etc/conf.d/emby-server
138 install -Dm 644 license.docx -t "${pkgdir}"/usr/share/licenses/emby-server/