-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
42 lines (37 loc) · 1.44 KB
/
PKGBUILD
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
# Maintainer: agilob <archlinux@agilob.net>
# Maintainer: Mario Ortiz Manero <marioortizmanero@gmail.com>
# Maintainer: Reza Namazi <rezanmz@ymail.com>
_pkgname=nault
pkgname="${_pkgname}-bin"
pkgver=1.18.2
pkgrel=1
pkgdesc='Official Nault AppImage client'
arch=('x86_64')
url='https://github.com/Nault/Nault'
license=('MIT')
provides=("$pkgname")
depends=('fuse2')
conflicts=("$pkgname")
options=(!strip)
_appimage="nault.AppImage"
source=("${url}/releases/download/v${pkgver}/Nault-${pkgver}-Linux.AppImage")
noextract=("$_appimage")
sha512sums=('cd2a1db407b872affb3fd4e29ffb930fa694e1d6a5a2d8edcc3ba416eae3609df87326496d4f9a7cd37e7ba45683a35f83a75f332c143ec6a584f112e67914bd')
prepare() {
mv "Nault-${pkgver}-Linux.AppImage" "$_appimage"
chmod +x "$_appimage"
"./$_appimage" --appimage-extract
# Fixing the desktop file
sed -i -E "s:Exec=AppRun:Exec=/opt/${_pkgname}/${_appimage}:" "squashfs-root/${_pkgname}.desktop"
}
package() {
# Appimage and symlink
install -Dpm755 "${_appimage}" "${pkgdir}/opt/${_pkgname}/${_appimage}"
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/${_pkgname}/${_appimage}" "${pkgdir}/usr/bin/${_pkgname}"
# Desktop file
install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# Icons
install -dm755 "${pkgdir}/usr/share/"
cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/"
}