blob: 20f6c2cd2b8ecb9a9bad1f451e80a729d5489352 (
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
|
# Maintainer: BlindingDark <blindingdark@outlook.com>
pkgname=wordninja-rs
_pkgname=wordninja
pkgver=0.1.0
pkgrel=2
pkgdesc="Split English sentence without spaces into words."
url="https://github.com/chengyuhui/wordninja-rs"
makedepends=('cargo')
arch=('x86_64')
license=('MIT')
provides=(wordninja)
conflicts=(wordninja)
source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$_pkgname/$pkgver/download")
sha256sums=('62f71d7204da91574de8ea56646b8b525ff179b477ca4782fabe1b27a097dc0c')
build() {
cd "$_pkgname-$pkgver"
RUSTUP_TOOLCHAIN=stable cargo build --release
}
package() {
cd "$_pkgname-$pkgver"
install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
}
|