From 789c5c8d7d911d8c4f099de29deb17dc71066142 Mon Sep 17 00:00:00 2001 From: Matt Compton Date: Thu, 3 Feb 2022 18:22:43 +0000 Subject: [PATCH 1/5] add PKGBUILD (testing) --- PKGBUILD | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..cd6a047 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,20 @@ +# Maintainer: Matt C +pkgname=jade-gui +pkgver=1.0.0 +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') +depends=('jade') +source=("git+${url}.git") + +build() { + cd ${srcdir}/jade_gui + flutter build linux +} + +package() { + mkdir -p ${pkgdir}/usr/bin + cp ${srcdir}/jade_gui/build/linux/x64/release/bundle/jade_gui ${pkgdir}/usr/bin/. +} From c7492462ee45293cce22922318317a0d4354384e Mon Sep 17 00:00:00 2001 From: Matt Compton Date: Thu, 3 Feb 2022 18:29:27 +0000 Subject: [PATCH 2/5] pain --- PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index cd6a047..93f10b6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,14 +7,14 @@ arch=('any') url="https://git.tar.black/crystal/programs/jade_gui" makedepends=('flutter-group-pacman-hook' 'flutter') depends=('jade') -source=("git+${url}.git") +source=("gui::git+${url}.git") build() { - cd ${srcdir}/jade_gui + cd ${srcdir}/gui flutter build linux } package() { mkdir -p ${pkgdir}/usr/bin - cp ${srcdir}/jade_gui/build/linux/x64/release/bundle/jade_gui ${pkgdir}/usr/bin/. + cp ${srcdir}/gui/build/linux/x64/release/bundle/jade_gui ${pkgdir}/usr/bin/. } From e20494ead47f2786f82f858dea2ff6e55921e576 Mon Sep 17 00:00:00 2001 From: Matt C Date: Thu, 3 Feb 2022 13:36:44 -0500 Subject: [PATCH 3/5] 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/. } From f94226f690d20a8e339c48a1d5ff4b8908366d4b Mon Sep 17 00:00:00 2001 From: Matt Compton Date: Thu, 3 Feb 2022 18:50:21 +0000 Subject: [PATCH 4/5] 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 + } From cdd22a01d9a0bc2a6b19bb6b7bba15a61b5a7118 Mon Sep 17 00:00:00 2001 From: Matt Compton Date: Thu, 3 Feb 2022 18:54:24 +0000 Subject: [PATCH 5/5] Update PKGBUILD --- PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 4a91789..3d9a471 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,5 +1,5 @@ # Maintainer: Matt C -pkgname=jade-gui +pkgname=jade_gui pkgver=1.0.1 pkgrel=1 pkgdesc="Flutter GUI for installing crystal"