blob: aaf5728fbb0fa1a02373f68ce0abe7b5163aec04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer : envolution
pkgname=stygiansift-git
_pkgname="StygianSift"
pkgver=r174+g5171c74fa
pkgrel=1
pkgdesc="A highly customizable TUI file explorer"
arch=("x86_64")
url="https://github.com/Mauitron/StygianSift"
license=("Custom")
depends=(ttf-jetbrains-mono-nerd)
makedepends=("git" "rust" "cargo")
provides=("stygiansift")
conflicts=("stygiansift")
source=("$_pkgname::git+https://github.com/Mauitron/StygianSift.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
_commits=$(git rev-list --count HEAD)
_short_commit_hash=$(git rev-parse --short=9 HEAD)
echo "r${_commits}+g${_short_commit_hash}"
}
prepare() {
cd "$_pkgname"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "$_pkgname"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
install -Dm755 "$srcdir/$_pkgname/target/release/StygianSift" "$pkgdir/usr/bin/stygiansift"
install -Dm644 "$srcdir/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 "$srcdir/$_pkgname/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
}
# vim: ts=2 sw=2 et:
|