From a8c93d5f75b3855bd73ca81c2ac9df91e8677d8f Mon Sep 17 00:00:00 2001 From: Julian Pollinger Date: Tue, 30 Apr 2024 00:03:01 +0200 Subject: [PATCH] build: pkgbuild for gui --- .github/workflows/arch_pkgs.yml | 3 ++- arch_pkgs/rism-gui/.SRCINFO | 16 ++++++++++++++++ arch_pkgs/rism-gui/.gitignore | 4 ++++ arch_pkgs/rism-gui/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 arch_pkgs/rism-gui/.SRCINFO create mode 100644 arch_pkgs/rism-gui/.gitignore create mode 100644 arch_pkgs/rism-gui/PKGBUILD diff --git a/.github/workflows/arch_pkgs.yml b/.github/workflows/arch_pkgs.yml index 25a8764..8ef73f7 100644 --- a/.github/workflows/arch_pkgs.yml +++ b/.github/workflows/arch_pkgs.yml @@ -30,7 +30,8 @@ jobs: package: [ c, - rust + rust, + rism-gui ] runs-on: ubuntu-latest steps: diff --git a/arch_pkgs/rism-gui/.SRCINFO b/arch_pkgs/rism-gui/.SRCINFO new file mode 100644 index 0000000..2f5123a --- /dev/null +++ b/arch_pkgs/rism-gui/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = rism-gui + pkgdesc = Gui for RiSM + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/neferin12/iSM + arch = x86_64 + license = MIT + makedepends = cargo + makedepends = clang + makedepends = binutils + depends = webkit2gtk + depends = z3 + source = rism-gui-0.1.0.tar.gz::https://github.com/neferin12/iSM/archive/refs/tags/rism-gui-v0.1.0.tar.gz + sha256sums = ea1935cce053dc7f63d15990d2571015a404f6451bea60fccc364d213d31821c + +pkgname = rism-gui diff --git a/arch_pkgs/rism-gui/.gitignore b/arch_pkgs/rism-gui/.gitignore new file mode 100644 index 0000000..31d2756 --- /dev/null +++ b/arch_pkgs/rism-gui/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO \ No newline at end of file diff --git a/arch_pkgs/rism-gui/PKGBUILD b/arch_pkgs/rism-gui/PKGBUILD new file mode 100644 index 0000000..80f577d --- /dev/null +++ b/arch_pkgs/rism-gui/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Julian Pollinger + +pkgname=('rism-gui') +pkgver=0.1.0 +pkgrel=1 +pkgdesc='Gui for RiSM' +arch=('x86_64') +url='https://github.com/neferin12/iSM' +license=('MIT') +depends=('webkit2gtk' 'z3') +makedepends=('cargo' 'clang' 'binutils') +source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/rism-gui-v$pkgver.tar.gz") +_dir="iSM-rism-gui-v$pkgver/gui/tauri-gui" +prepare() { + cd $_dir + yarn install + cd src-tauri + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + + +build() { + cd $_dir + export RUSTUP_TOOLCHAIN=stable + yarn tauri build -b deb +} + +package() { + cp -r $_dir/src-tauri/target/release/bundle/deb/rism-gui_${pkgver}_amd64/data/* $pkgdir + # install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" +} +sha256sums=('ea1935cce053dc7f63d15990d2571015a404f6451bea60fccc364d213d31821c')