summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15d648432f5e3378994cfaca05d8e097c1b5b022 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Filipe Nascimento <flipee at tuta dot io>

pkgname=choose
pkgver=1.3.1
pkgrel=1
pkgdesc="A human-friendly and fast alternative to cut and (sometimes) awk"
arch=('x86_64')
url="https://github.com/theryangeary/choose"
license=('GPL3')
depends=('gcc-libs')
makedepends=('rust')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('6c44170f456f410370ba31d59bfad1f54a71ba80a79b87debbe235672a2ea0dd')

build() {
    cd $pkgname-$pkgver
    cargo build --release --locked
}

package() {
    cd $pkgname-$pkgver
    install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
}