cruxports/moonlander/Pkgfile

25 lines
631 B
Plaintext
Raw Normal View History

2022-05-02 08:39:36 -04:00
# 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
}