summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffde8f156978ebbd2336c1a64e6aaaf4117e58aa (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.0
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"
}