blob: 5105c812eb035b3d9af22e7708a93461e6dfb150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Maintainer: Ludvig Hozman <ludvig.hozman@gmail.com>
pkgname=plex-desktop
pkgver=1.104.0.241
_pkghash=2164c90a
pkgrel=1
pkgdesc="Plex desktop client for linux"
arch=('x86_64')
url='http://plex.tv'
license=('unknown')
depends=(libgl
hicolor-icon-theme
alsa-lib
dbus
expat
ffmpeg6.1
fontconfig
freetype2
gcc-libs
glib2
glibc
harfbuzz
lcms2
libdrm
libjpeg-turbo
libwebp
libx11
libxcb
libxcomposite
libxdamage
libxext
libxfixes
libxkbcommon
libxkbfile
libxml2
libxrandr
libxslt
libxtst
mesa
minizip
nspr
nss
opus
xcb-util-renderutil
pciutils
libxss
xcb-util-image
libxkbcommon-x11
libxinerama
xcb-util-keysyms
xcb-util-wm
zlib
snappy
libva
libpulse
libxrender
wayland
qt6-base
)
source=("https://artifacts.plex.tv/plex-desktop-stable/$pkgver-$_pkghash/linux/Plex-$pkgver-$_pkghash-linux-x86_64.tar.bz2"
"http://ftp.us.debian.org/debian/pool/main/libw/libwebp/libwebp6_0.6.1-2.1+deb11u2_amd64.deb"
"https://github.com/flathub/tv.plex.PlexDesktop/raw/master/tv.plex.PlexDesktop.desktop"
"https://github.com/flathub/tv.plex.PlexDesktop/raw/master/tv.plex.PlexDesktop.png"
)
sha256sums=('ed1da4bd60d09f9f50d934503f95f3c3dd409d7d2a6ae7bfd709b02e8aad274a'
'8abc2b1ca77a458bbbcdeb6af5d85316260977370fa2518d017222b3584d9653'
'2215f6bb3a2bbe50ceb3bedcb93f53d11f6a51ec7512f08f68af91da8253261b'
'565178841c318fb4926acf65a68df6dae484c0b705be6dd736858e7408a261d5')
noextract=('Plex-$pkgver-$_pkghash-linux-x86_64.tar.bz2')
package() {
cd "$srcdir"
install -d "${pkgdir}/opt/${pkgname}"
tar --no-same-owner -xvf $srcdir/Plex-$pkgver-$_pkghash-linux-x86_64.tar.bz2 -C $pkgdir/opt/${pkgname}
tar -xvf $srcdir/data.tar.xz ./usr/lib/x86_64-linux-gnu/libwebp.so.6.0.2
install -Dm644 usr/lib/x86_64-linux-gnu/libwebp.so.6.0.2 ${pkgdir}/opt/${pkgname}/lib/libwebp.so.6
rm -rf $pkgdir/opt/${pkgname}/lib/dri
rm -rf $pkgdir/opt/${pkgname}/lib/libEGL.so*
rm -rf $pkgdir/opt/${pkgname}/lib/libdrm.so*
rm -rf $pkgdir/opt/${pkgname}/lib/libdrm_*.so*
rm -rf $pkgdir/opt/${pkgname}/lib/libpciaccess.so*
rm -rf $pkgdir/opt/${pkgname}/lib/libswresample.so*
rm -rf $pkgdir/opt/${pkgname}/lib/libva.so*
rm -rf $pkgdir/opt/${pkgname}/lib/libva-*.so*
install -d ${pkgdir}/usr/bin
ln -s /opt/${pkgname}/Plex.sh ${pkgdir}/usr/bin/Plex
install -Dm644 "${srcdir}/tv.plex.PlexDesktop.desktop" -t "${pkgdir}/usr/share/applications"
install -Dm644 "${srcdir}/tv.plex.PlexDesktop.png" -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps/"
}
|