blob: 497c20de79661f896ad7877086dca18556b9d23b (
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
|
# Maintainer: Stephen Gregoratto <dev@sgregoratto.me>
pkgname=choose-rust-git
pkgver=r71.9bf0214
pkgrel=1
pkgdesc="A fast, human-friendly alternative to awk(1) and cut(1)"
url="https://github.com/theryangeary/choose"
license=('GPL')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
depends=('gcc-libs')
makedepends=('git' 'cargo')
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "choose"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "choose"
cargo build --release --locked --all-features
}
check() {
cd "choose"
cargo test --release --locked
}
package() {
install -Dm755 "choose/target/release/choose" "$pkgdir/usr/bin/choose"
}
|