From c61262b023153fa2c829768fc758a8884bd83573 Mon Sep 17 00:00:00 2001 From: John McQuah Date: Mon, 2 May 2022 08:39:36 -0400 Subject: [PATCH] moonlander: initial commit --- moonlander/.footprint | 3 +++ moonlander/.signature | 4 ++++ moonlander/Pkgfile | 24 ++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 moonlander/.footprint create mode 100644 moonlander/.signature create mode 100644 moonlander/Pkgfile diff --git a/moonlander/.footprint b/moonlander/.footprint new file mode 100644 index 0000000..5a44bcb --- /dev/null +++ b/moonlander/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/moonlander diff --git a/moonlander/.signature b/moonlander/.signature new file mode 100644 index 0000000..90640bf --- /dev/null +++ b/moonlander/.signature @@ -0,0 +1,4 @@ +untrusted comment: verify with /etc/ports/jmq.pub +RWTTPlFarK9CxE03+CYCfjsgC6BILgGJRg93DPlc0R5KS87rKH9EoZS+InfxFaSnizyoxkIJ3PdLql5kfXnPkRjvOAe9vX3uNgg= +SHA256 (Pkgfile) = 2e952221f84405a15b40731385b1e9aa67f5cac31fbf323318e2db0b18e353db +SHA256 (moonlander-abfb9cd4.tar.gz) = f45f7929c0f864da843f96e1d5f342311dba8049c6e7e71c0da318f44ea72ef8 diff --git a/moonlander/Pkgfile b/moonlander/Pkgfile new file mode 100644 index 0000000..967dc71 --- /dev/null +++ b/moonlander/Pkgfile @@ -0,0 +1,24 @@ +# Description: graphical gemini browser using GTK3 +# URL: https://git.sr.ht/~admicos/moonlander/ +# Maintainer: John McQuah, jmcquah at disroot dot org +# Depends on: rust gtk3 + +name=moonlander +version=abfb9cd4 +release=1 +source=(https://git.sr.ht/~admicos/$name/archive/$version.tar.gz) +renames=($name-$version.tar.gz) + +build() { + prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache + mkdir -p "$PKGMK_SOURCE_DIR/rust" + export CARGO_HOME="$PKGMK_SOURCE_DIR/rust" + + cd $name-$version + cargo build --release + + cd target/release + strip -s moonlander + mkdir -p $PKG/usr/bin + install -m 0755 moonlander $PKG/usr/bin +}