diff options
Diffstat (limited to 'fsrx-git')
| -rw-r--r-- | fsrx-git/.SRCINFO | 16 | ||||
| -rw-r--r-- | fsrx-git/.gitignore | 4 | ||||
| -rw-r--r-- | fsrx-git/PKGBUILD | 38 |
3 files changed, 58 insertions, 0 deletions
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 @@ | |||
| 1 | pkgbase = fsrx-git | ||
| 2 | pkgdesc = flow state reading in the terminal | ||
| 3 | pkgver = r6.860bcdc | ||
| 4 | pkgrel = 1 | ||
| 5 | url = https://github.com/coloradocolby/fsrx | ||
| 6 | arch = x86_64 | ||
| 7 | license = MIT | ||
| 8 | makedepends = git | ||
| 9 | makedepends = cargo | ||
| 10 | provides = fsrx | ||
| 11 | conflicts = fsrx | ||
| 12 | conflicts = fsrx-bin | ||
| 13 | source = fsrx::git+https://github.com/coloradocolby/fsrx | ||
| 14 | sha256sums = SKIP | ||
| 15 | |||
| 16 | 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 @@ | |||
| 1 | * | ||
| 2 | !.gitignore | ||
| 3 | !.SRCINFO | ||
| 4 | !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 @@ | |||
| 1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
| 2 | |||
| 3 | pkgname=fsrx-git | ||
| 4 | _pkgname=${pkgname%-git} | ||
| 5 | pkgver=r6.860bcdc | ||
| 6 | pkgrel=1 | ||
| 7 | pkgdesc="flow state reading in the terminal" | ||
| 8 | arch=("x86_64") | ||
| 9 | url="https://github.com/coloradocolby/fsrx" | ||
| 10 | license=("MIT") | ||
| 11 | makedepends=("git" "cargo") | ||
| 12 | provides=(${_pkgname}) | ||
| 13 | conflicts=(${_pkgname} ${_pkgname}-bin) | ||
| 14 | source=("${_pkgname}::git+${url}") | ||
| 15 | sha256sums=("SKIP") | ||
| 16 | |||
| 17 | pkgver() { | ||
| 18 | cd "$srcdir/${_pkgname}" | ||
| 19 | printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
| 20 | } | ||
| 21 | |||
| 22 | prepare() { | ||
| 23 | cd "$srcdir/${_pkgname}" | ||
| 24 | cargo fetch --locked --target "$CARCH-unknown-linux-gnu" | ||
| 25 | } | ||
| 26 | |||
| 27 | build() { | ||
| 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 | |||
| 34 | package() { | ||
| 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 | } | ||
