blob: edaf752c7b35695347dc36c0f1a1e858a3cf313e (
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
|
# Maintainer: Carlo Abelli <carlo@abelli.me>
pkgname=biff
pkgver=0.1.0
pkgrel=1
pkgdesc="A command line tool for datetime arithmetic, parsing, formatting and more"
arch=(x86_64)
url=https://github.com/BurntSushi/biff
license=(MIT Unlicense)
depends=()
makedepends=(cargo)
source=("$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/biff/archive/refs/tags/$pkgver.tar.gz")
sha256sums=(2467dddc985a335f83049d19eec862dac7e9dab59044ed2932f8a371a88291f1)
prepare() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 -t "$pkgdir/usr/bin" "target/release/$pkgname"
}
|