Skip to content

Commit

Permalink
build: pkgbuild for gui
Browse files Browse the repository at this point in the history
  • Loading branch information
neferin12 committed Apr 29, 2024
1 parent e0f23db commit a8c93d5
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/arch_pkgs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
package:
[
c,
rust
rust,
rism-gui
]
runs-on: ubuntu-latest
steps:
Expand Down
16 changes: 16 additions & 0 deletions arch_pkgs/rism-gui/.SRCINFO
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions arch_pkgs/rism-gui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO
33 changes: 33 additions & 0 deletions arch_pkgs/rism-gui/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Maintainer: Julian Pollinger <julian@pollinger.dev>

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')

0 comments on commit a8c93d5

Please sign in to comment.