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/.SRCINFO | 16 ++++++++++++++++ fsrx-git/.gitignore | 4 ++++ fsrx-git/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 fsrx-git/.SRCINFO create mode 100644 fsrx-git/.gitignore create mode 100644 fsrx-git/PKGBUILD (limited to 'fsrx-git') diff --git a/fsrx-git/.SRCINFO b/fsrx-git/.SRCINFO new file mode 100644 index 0000000..03a3f6b --- /dev/null +++ b/fsrx-git/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = fsrx-git + pkgdesc = flow state reading in the terminal + pkgver = r6.860bcdc + pkgrel = 1 + url = https://github.com/coloradocolby/fsrx + arch = x86_64 + license = MIT + makedepends = git + makedepends = cargo + provides = fsrx + conflicts = fsrx + conflicts = fsrx-bin + source = fsrx::git+https://github.com/coloradocolby/fsrx + sha256sums = SKIP + +pkgname = fsrx-git diff --git a/fsrx-git/.gitignore b/fsrx-git/.gitignore new file mode 100644 index 0000000..05c6d4d --- /dev/null +++ b/fsrx-git/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!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