From fd06cc1ab774aae9222ba3d5b2e9c0c0e0ba3e98 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 8 Jun 2022 10:50:22 +0300 Subject: fsrx-git: Publish to AUR --- fsrx-git/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 fsrx-git/PKGBUILD (limited to 'fsrx-git/PKGBUILD') diff --git a/fsrx-git/PKGBUILD b/fsrx-git/PKGBUILD new file mode 100644 index 0000000..586805b --- /dev/null +++ b/fsrx-git/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Yigit Sever + +pkgname=fsrx-git +_pkgname=${pkgname%-git} +pkgver=r6.860bcdc +pkgrel=1 +pkgdesc="flow state reading in the terminal" +arch=("x86_64") +url="https://github.com/coloradocolby/fsrx" +license=("MIT") +makedepends=("git" "cargo") +provides=(${_pkgname}) +conflicts=(${_pkgname} ${_pkgname}-bin) +source=("${_pkgname}::git+${url}") +sha256sums=("SKIP") + +pkgver() { + cd "$srcdir/${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/${_pkgname}" + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + cd "$srcdir/${_pkgname}" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + GEN_COMPLETIONS=1 cargo build --frozen --release --all-features +} + +package() { + cd "$srcdir/${_pkgname}" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${_pkgname}" + install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE" +} -- cgit v1.2.3-70-g09d2