You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jade_gui/PKGBUILD

41 lines
1.2 KiB
Bash

# Maintainer: Matt C <matt[at]getcryst[dot]al>
3 years ago
pkgname=jade_gui
3 years ago
pkgver=1.0.4
pkgrel=1
pkgdesc="Flutter GUI for installing crystal"
arch=('any')
url="https://git.tar.black/crystal/programs/jade_gui"
depends=('gtk3' 'jade' 'openssl')
3 years ago
makedepends=('clang' 'ninja' 'cmake' 'git' 'unzip' 'flutter' 'flutter-group-pacman-hook')
3 years ago
source=("gui::git+${url}.git")
sha256sums=('SKIP')
build() {
3 years ago
cd ${srcdir}/gui
3 years ago
flutter config --enable-linux-desktop
flutter config --no-analytics
flutter clean
flutter pub get
flutter build linux --release --verbose
}
package() {
3 years ago
mkdir -p ${pkgdir}/opt/jade_gui/
3 years ago
install -dm755 ${pkgdir}/opt
3 years ago
mv ${srcdir}/gui/build/linux/x64/release/bundle ${pkgdir}/opt/jade_gui/.
3 years ago
install -dm755 ${pkgdir}/usr/bin
ln -s /opt/jade_gui/bundle/jade_gui ${pkgdir}/usr/bin/jade_gui
3 years ago
mkdir -p ${pkgdir}/opt/jade_gui/scripts/
3 years ago
mv ${srcdir}/gui/scripts/* ${pkgdir}/opt/jade_gui/scripts/.
chmod +x ${pkgdir}/opt/jade_gui/scripts/*
mkdir -p ${pkgdir}/usr/share/applications/
3 years ago
cp ${srcdir}/gui/Jade.desktop ${pkgdir}/usr/share/applications/Jade.desktop
3 years ago
mkdir -p ${pkgdir}/usr/share/icons/
3 years ago
cp ${srcdir}/gui/assets/jade_logo.png ${pkgdir}/usr/share/icons/jade-logo
}