blob: a90b624760a6863870e55fd72d85d9a9b27e08e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Maintainer: lstnbl<jialanxin1996@hotmail.com>
pkgname=fanyi-git
_pkgname=fanyi
pkgver=0.1.1
pkgrel=1
arch=("x86_64")
url="https://github.com/jialanxin/fanyi.git"
pkgdesc='(Rust ver.)A CN and US translate tool in your command line.'
source=("git+https://github.com/jialanxin/fanyi.git#tag=v$pkgver")
sha1sums=('SKIP')
depends=("gcc-libs")
makedepends=("git" "cargo")
build(){
cd $_pkgname
cargo build --release --locked
}
package(){
cd $_pkgname
install -Dm 755 "target/release/${_pkgname}" -t "${pkgdir}/usr/bin"
ln -s "$pkgdir/usr/bin/fanyi" "$pkgdir/usr/bin/fy"
}
|