summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeterge2020-07-21 16:51:11 +0200
committerpeterge2020-07-21 16:51:11 +0200
commitcd23b70d36f2de06ab764eaa033b0bd4376b8962 (patch)
treec20a58cf5748c8d241efb5b533ecf1be9ff0c42d
downloadaur-cd23b70d36f2de06ab764eaa033b0bd4376b8962.tar.gz
Initial commit of jellyamp-appimage package
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD56
2 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d6d3203ada0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = jellyamp-appimage
+ pkgdesc = A stylish, cross-platform desktop client for listening to music from a Jellyfin server. Inspired by Plexamp.
+ pkgver = 0.9.5
+ pkgrel = 0
+ url = https://github.com/m0ngr31/jellyamp
+ arch = x86_64
+ license = MIT
+ depends = zlib
+ depends = hicolor-icon-theme
+ provides = jellyamp
+ conflicts = jellyamp
+ noextract = jellyamp-appimage-0.9.5.AppImage
+ options = !strip
+ source = jellyamp-appimage-0.9.5.AppImage::https://github.com/m0ngr31/jellyamp/releases/download/v0.9.5/Jellyamp-0.9.5-x86_64.AppImage
+ source = https://raw.githubusercontent.com/m0ngr31/jellyamp/v0.9.5/LICENSE
+ sha256sums = 4d52d8782185c96bce884458b2aa75ac146e66cad22d7e099068b57cd059c667
+ sha256sums = b801c8d677ef9701149e05cf98f28b82a56832dd67c94d96d36d25d063b1b353
+
+pkgname = jellyamp-appimage
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b4c368dd07a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Peter Gerhards <mail@peterge.de>
+
+_pkgname=Jellyamp
+pkgname=jellyamp-appimage
+pkgver=0.9.5
+pkgrel=0
+pkgdesc="A stylish, cross-platform desktop client for listening to music from a Jellyfin server. Inspired by Plexamp."
+provides=('jellyamp')
+conflicts=('jellyamp')
+arch=('x86_64')
+url="https://github.com/m0ngr31/jellyamp"
+license=("MIT")
+depends=('zlib' 'hicolor-icon-theme')
+options=(!strip)
+_appimage="${pkgname}-${pkgver}.AppImage"
+source=("${_appimage}::https://github.com/m0ngr31/jellyamp/releases/download/v${pkgver}/${_pkgname}-${pkgver}-${arch}.AppImage"
+ "https://raw.githubusercontent.com/m0ngr31/jellyamp/v${pkgver}/LICENSE"
+ )
+noextract=("${_appimage}")
+sha256sums=('4d52d8782185c96bce884458b2aa75ac146e66cad22d7e099068b57cd059c667'
+ 'b801c8d677ef9701149e05cf98f28b82a56832dd67c94d96d36d25d063b1b353')
+
+prepare() {
+ chmod +x "${_appimage}"
+ ./"${_appimage}" --appimage-extract
+}
+
+build() {
+ # Adjust .desktop so it will work outside of AppImage container
+ sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${_pkgname}|"\
+ "squashfs-root/${_pkgname}.desktop"
+ # Fix permissions; .AppImage permissions are 700 for all directories
+ chmod -R a-x+rX squashfs-root/usr
+}
+
+package() {
+ # AppImage
+ install -Dm755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${pkgname}/${pkgname}.AppImage"
+ install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/opt/${pkgname}/LICENSE"
+
+ # Desktop file
+ install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop"\
+ "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
+
+ # Icon images
+ install -dm755 "${pkgdir}/usr/share/"
+ cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
+
+ # Symlink executable
+ install -dm755 "${pkgdir}/usr/bin"
+ ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}"
+
+ # Symlink license
+ install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/"
+ ln -s "/opt/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
+}