blob: e4e1c9d04a3f415f70c5938094d1d7c7ead491ed (
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
|
# shellcheck disable=2034,SC2164
# Maintainer: Andres Rodriguez Michel <andresmichelrodriguez@gmail.com>
pkgname=languagetool-rust
pkgver=2.1.4
pkgrel=1
pkgdesc="LanguageTool API in Rust"
arch=(any)
url="https://github.com/jeertmans/languagetool-rust"
makedepends=(rust)
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
md5sums=("2035f884eb853dd9040b7da95e2bdfe0")
prepare() {
cd $pkgname-$pkgver
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd $pkgname-$pkgver
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --features full
}
package() {
cd $pkgname-$pkgver
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/ltrs"
}
|