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 new file mode 100644 index 0000000..3d9a471 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Matt C +pkgname=jade_gui +pkgver=1.0.1 +pkgrel=1 +pkgdesc="Flutter GUI for installing crystal" +arch=('any') +url="https://git.tar.black/crystal/programs/jade_gui" +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 config --no-analytics + flutter clean + flutter pub get + flutter build linux --release --verbose +} + +package() { + 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 + +}