blob: 00f2c08a9eb8ab224ea7881d2ab7a65e06f015e4 (
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: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
# Co-Maintainer: Ash <xash at riseup d0t net>
pkgname=flightcore-bin
pkgver=2.26.0
pkgrel=1
pkgdesc="Installer/Updater/Launcher for Northstar (binary release)"
url="https://github.com/R2NorthstarTools/FlightCore"
license=('MIT')
arch=('x86_64')
depends=('webkit2gtk')
makedepends=('fuse2')
provides=("flightcore")
conflicts=("flightcore")
_appimage=flight-core_${pkgver}_amd64.AppImage
source=("$url/releases/download/v$pkgver/$_appimage"
"$url/archive/refs/tags/v2.26.0.zip")
sha256sums=('e974c32b566913aca7486a8447b054a82081ed5f57984ff4b3cefdfc500ae444'
'33a452265be6ae24db30c843bdb7ef102a848423a6159bceae6d5e37a33e1cda')
prepare() {
# Extract the AppImage
chmod +x "./$_appimage"
"./$_appimage" --appimage-extract
# Edit the shortcut
mv squashfs-root/usr/share/applications/flight-core.desktop flightcore.desktop
sed -i "s/flight-core/flightcore/g" flightcore.desktop
}
package() {
install -Dm644 flightcore.desktop -t "$pkgdir/usr/share/applications"
install -Dm755 squashfs-root/usr/bin/flight-core "$pkgdir/usr/bin/flightcore"
cd FlightCore-2.26.0
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/flightcore"
cd docs
install -Dm644 ../README.md DEV-TOOLS.md DEVELOPMENT.md FAQ.md TROUBLESHOOTING.md\
-t "$pkgdir/usr/share/doc/flightcore"
cd ../src-tauri/icons
_icdr=usr/share/icons/hicolor
install -Dm644 32x32.png "$pkgdir/$_icdr/32x32/apps/flightcore.png"
install -Dm644 128x128.png "$pkgdir/$_icdr/128x128/apps/flightcore.png"
install -Dm644 128x128@2x.png "$pkgdir/$_icdr/256x256/apps/flightcore.png"
install -Dm644 icon.png "$pkgdir/$_icdr/512x512/apps/flightcore.png"
}
|