Update PKGBUILD

pull/2/head
Matt Compton 3 years ago
parent e20494ead4
commit f94226f690

@ -1,23 +1,30 @@
# Maintainer: Matt C <matt[at]getcryst[dot]al> # Maintainer: Matt C <matt[at]getcryst[dot]al>
pkgname=jade-gui pkgname=jade-gui
pkgver=1.0.0 pkgver=1.0.1
pkgrel=1 pkgrel=1
pkgdesc="Flutter GUI for installing crystal" pkgdesc="Flutter GUI for installing crystal"
arch=('any') arch=('any')
url="https://git.tar.black/crystal/programs/jade_gui" url="https://git.tar.black/crystal/programs/jade_gui"
makedepends=('flutter-group-pacman-hook' 'flutter' 'cmake' 'ninja' 'clang') depends=('gtk3' 'jade')
depends=('jade') makedepends=('clang' 'ninja' 'cmake' 'git' 'unzip' 'flutter' 'flutter-group-pacman-hook')
source=("gui::git+${url}.git") source=("gui::git+${url}.git")
sha256sums=('SKIP') sha256sums=('SKIP')
build() { build() {
cd ${srcdir}/gui cd ${srcdir}/gui
flutter config --enable-linux-desktop flutter config --enable-linux-desktop
flutter build linux flutter config --no-analytics
flutter clean
flutter pub get
flutter build linux --release --verbose
} }
package() { package() {
mkdir -p ${pkgdir}/usr/{bin,lib} install -dm755 ${pkgdir}/opt
cp ${srcdir}/gui/build/linux/x64/release/bundle/jade_gui ${pkgdir}/usr/bin/. mv ${srcdir}/gui/build/linux/x64/release/bundle ${pkgdir}/opt/jade_gui
cp ${srcdir}/gui/build/linux/x64/release/bundle/lib/* ${pkgdir}/usr/lib/.
install -dm755 ${pkgdir}/usr/bin
ln -s /opt/jade_gui/jade_gui ${pkgdir}/usr/bin/jade_gui
} }

Loading…
Cancel
Save