From f94226f690d20a8e339c48a1d5ff4b8908366d4b Mon Sep 17 00:00:00 2001 From: Matt Compton Date: Thu, 3 Feb 2022 18:50:21 +0000 Subject: [PATCH] Update PKGBUILD --- PKGBUILD | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index b72b9fc..4a91789 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,23 +1,30 @@ # Maintainer: Matt C pkgname=jade-gui -pkgver=1.0.0 +pkgver=1.0.1 pkgrel=1 pkgdesc="Flutter GUI for installing crystal" arch=('any') url="https://git.tar.black/crystal/programs/jade_gui" -makedepends=('flutter-group-pacman-hook' 'flutter' 'cmake' 'ninja' 'clang') -depends=('jade') +depends=('gtk3' 'jade') +makedepends=('clang' 'ninja' 'cmake' 'git' 'unzip' 'flutter' 'flutter-group-pacman-hook') + source=("gui::git+${url}.git") sha256sums=('SKIP') build() { cd ${srcdir}/gui - flutter config --enable-linux-desktop - flutter build linux + flutter config --enable-linux-desktop + flutter config --no-analytics + flutter clean + flutter pub get + flutter build linux --release --verbose } package() { - mkdir -p ${pkgdir}/usr/{bin,lib} - cp ${srcdir}/gui/build/linux/x64/release/bundle/jade_gui ${pkgdir}/usr/bin/. - cp ${srcdir}/gui/build/linux/x64/release/bundle/lib/* ${pkgdir}/usr/lib/. + install -dm755 ${pkgdir}/opt + mv ${srcdir}/gui/build/linux/x64/release/bundle ${pkgdir}/opt/jade_gui + + install -dm755 ${pkgdir}/usr/bin + ln -s /opt/jade_gui/jade_gui ${pkgdir}/usr/bin/jade_gui + }