blob: fb7ba1822eb797d25b798cc631b6edfb970d3f27 (
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
|
# Maintainer: Joel Grunbaum <joelgrun@gmail.com>
# Contributor: Julius Dehner <julius.dehner@protonmail.com>
# Contributor: Felix Golatofski <contact@xdfr.de>
pkgname=plexamp-appimage
pkgver=4.11.2
pkgrel=1
pkgdesc="Modern music client for Plex"
provides=('plexamp')
conflicts=('plexamp')
arch=('x86_64')
makedepends=('imagemagick' 'librsvg')
depends=('fuse2')
url="https://plexamp.com"
options=(!strip)
_desktop_name=plexamp.desktop
_filename=Plexamp-${pkgver}.AppImage
source=(
https://plexamp.plex.tv/plexamp.plex.tv/desktop/${_filename}
)
sha512sums=('70d06ea4b14786aec60e88ff4181ac4b45128532a60e97ff2710594bdd95c130aeb818d27133061747044c6118627bf1aafe2f7fd31228d634fc75bd0ae82e68')
prepare() {
cd "$srcdir"
rm -rf squashfs-root
chmod +x $_filename
./$_filename --appimage-extract
sed -i -e "s|Exec=.\+|Exec=env APPIMAGELAUNCHER_DISABLE=1 DESKTOPINTEGRATION=0 /usr/bin/Plexamp.AppImage --disable-seccomp-filter-sandbox|" squashfs-root/${_desktop_name}
}
package() {
echo "Starting install"
install -Dm755 $_filename "$pkgdir"/usr/bin/Plexamp.AppImage
echo "Installing desktop launch file to $pkgdir/usr/bin/Plexamp.AppImage"
install -Dm755 squashfs-root/${_desktop_name} "$pkgdir"/usr/share/applications/${_desktop_name}
echo "Installing icons"
install -Dm644 squashfs-root/usr/share/icons/hicolor/scalable/plexamp.svg $pkgdir/usr/share/icons/hicolor/scalable/plexamp.svg
for res in "16x16" "32x32" "48x48" "64x64" "128x128" "256x256" "512x512"; do
mkdir -p squashfs-root/usr/share/icons/hicolor/$res/apps/
magick convert squashfs-root/usr/share/icons/hicolor/scalable/plexamp.svg -size $res squashfs-root/usr/share/icons/hicolor/$res/apps/plexamp.png
install -Dm644 squashfs-root/usr/share/icons/hicolor/$res/apps/plexamp.png $pkgdir/usr/share/icons/hicolor/$res/apps/plexamp.png
done
}
|