summaryrefslogtreecommitdiffstats
path: root/fsrx-git/PKGBUILD
diff options
context:
space:
mode:
authorYigit Sever2022-06-08 10:50:22 +0300
committerYigit Sever2022-06-08 10:50:22 +0300
commitfd06cc1ab774aae9222ba3d5b2e9c0c0e0ba3e98 (patch)
tree65dbdde69ecc2632a9a44d38fba0a4209fd9c73e /fsrx-git/PKGBUILD
parent4e858323db690fa40343634919c023fa2786d359 (diff)
downloadpackages-fd06cc1ab774aae9222ba3d5b2e9c0c0e0ba3e98.tar.gz
packages-fd06cc1ab774aae9222ba3d5b2e9c0c0e0ba3e98.tar.bz2
packages-fd06cc1ab774aae9222ba3d5b2e9c0c0e0ba3e98.zip
fsrx-git: Publish to AUR
Diffstat (limited to 'fsrx-git/PKGBUILD')
-rw-r--r--fsrx-git/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
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 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2
3pkgname=fsrx-git
4_pkgname=${pkgname%-git}
5pkgver=r6.860bcdc
6pkgrel=1
7pkgdesc="flow state reading in the terminal"
8arch=("x86_64")
9url="https://github.com/coloradocolby/fsrx"
10license=("MIT")
11makedepends=("git" "cargo")
12provides=(${_pkgname})
13conflicts=(${_pkgname} ${_pkgname}-bin)
14source=("${_pkgname}::git+${url}")
15sha256sums=("SKIP")
16
17pkgver() {
18 cd "$srcdir/${_pkgname}"
19 printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
20}
21
22prepare() {
23 cd "$srcdir/${_pkgname}"
24 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
25}
26
27build() {
28 cd "$srcdir/${_pkgname}"
29 export RUSTUP_TOOLCHAIN=stable
30 export CARGO_TARGET_DIR=target
31 GEN_COMPLETIONS=1 cargo build --frozen --release --all-features
32}
33
34package() {
35 cd "$srcdir/${_pkgname}"
36 install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${_pkgname}"
37 install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
38}