From acbf39e6e9096865863e99b21df573f993afc308 Mon Sep 17 00:00:00 2001 From: Mossfet Date: Mon, 5 Jun 2023 18:36:53 +0100 Subject: [PATCH] Initial commit --- PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..28af4c4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +pkgname=mossfets-life +pkgver=0.9.4 +pkgrel=1 +pkgdesc="A GTK Game of Life implementation" +arch=('any') +url="https://mossfet.xyz/projects/life/" +license=(GPL3) +groups=() +depends=( + gtk4 + libadwaita +) +makedepends=( + meson + git + cargo-nightly +) +optdepends=() +checkdepends=(appstream-glib) +provides=() +conflicts=() +replaces=() +backup=() +options=() + +_commit=06794fe0aff4c73c8d29d46d5d89b12ef1a4a12e +source=("git+https://git.solarpunk.moe/mossfet/game-of-life-gui.git#commit=$_commit") +b2sums=('SKIP') + +prepare() { + cd game-of-life-gui + export RUSTUP_TOOLCHAIN=nightly + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + arch-meson game-of-life-gui build + meson compile -C build +} + +package() { + meson install -C build --destdir "$pkgdir" +} +