blob: 60eb3c2a3c54bb78ecb0470c463b3763b8b59b4e (
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
|
# Maintainer: Jonas Dellinger <jonas@dellinger.dev>
pkgname=altair
pkgver=7.3.4
pkgrel=1
pkgdesc='A beautiful feature-rich GraphQL Client for all platforms.'
arch=('x86_64')
depends=('gtk2' 'gtk3' 'nss' 'libxss' 'dbus-glib' 'electron')
url="https://github.com/imolorhe/altair"
license=('MIT')
provides=('altair')
source_x86_64=("${pkgname}-${pkgver}.AppImage::https://github.com/imolorhe/altair/releases/download/v${pkgver}/altair_${pkgver}_${arch}_linux.AppImage"
altair)
sha256sums_x86_64=('c25e6a954867c2aa9833cdf49ba296350058da354c87bd791da84b9e0ca22fe2'
'a3760d34334143f48d278f5cb17fd450da04048c7d3966e46bb44d35e9d171c7')
prepare() {
# mark as executable so we can extract
chmod +x "${srcdir}/${pkgname}-${pkgver}.AppImage"
# extract the AppImage
"${srcdir}/${pkgname}-${pkgver}.AppImage" --appimage-extract
# remove execution bit after extraction
chmod -x "${srcdir}/${pkgname}-${pkgver}.AppImage"
}
package() {
# install the electron wrapper
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
# install asar file
install -Dm644 "${srcdir}/squashfs-root/resources/app.asar" "$pkgdir/usr/lib/$pkgname.asar"
# desktop entry
sed -i.bak s/Exec=AppRun/Exec=altair/g "${srcdir}/squashfs-root/${pkgname}.desktop"
install -Dm644 "${srcdir}/squashfs-root/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
# install the icons
for i in 16 32 48 60 120 192 310; do
install -Dm 644 \
"${srcdir}/squashfs-root/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png" \
"${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png"
done
}
|