From e20494ead47f2786f82f858dea2ff6e55921e576 Mon Sep 17 00:00:00 2001 From: Matt C Date: Thu, 3 Feb 2022 13:36:44 -0500 Subject: [PATCH] pkgbuild and ignore build artif --- .gitignore | 5 +++++ PKGBUILD | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0fa6b67..189d6f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +# makepkg +pkg/ +src/ +gui/ + # Miscellaneous *.class *.log diff --git a/PKGBUILD b/PKGBUILD index 93f10b6..b72b9fc 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,16 +5,19 @@ 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') +makedepends=('flutter-group-pacman-hook' 'flutter' 'cmake' 'ninja' 'clang') depends=('jade') source=("gui::git+${url}.git") +sha256sums=('SKIP') build() { cd ${srcdir}/gui + flutter config --enable-linux-desktop flutter build linux } package() { - mkdir -p ${pkgdir}/usr/bin + 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/. }