blob: d82d98d97862ff8d8bf5d24c376e6b2c66829bfc (
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
|
# Maintainer: Jian Wei Cheong <aur at jianwei dot anonaddy dot com>
pkgname=bibiman
pkgver=0.11.4
pkgrel=1
pkgdesc='A TUI for fast and simple interacting with your BibLaTeX database.'
url='https://codeberg.org/lukeflo/bibiman'
license=('GPL-3.0-or-later')
makedepends=('cargo')
provides=('bibiman')
arch=('x86_64')
options=(!debug !lto)
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
b2sums=('21867be450106e199d7fb260a9800b075f0431d164e062a36d74cbb11296d6b3f8a8c67e30031a01f3d63a7bbec78328ff540fe0ce5b553856db1b6de4adfa4c')
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd $pkgname-$pkgver
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd $pkgname-$pkgver
cargo build --frozen --release --all-features
}
check() {
export RUSTUP_TOOLCHAIN=stable
cd $pkgname-$pkgver
cargo test --frozen --all-features
}
package() {
cd $pkgname-$pkgver
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
}
|