summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8eb93e7a3e4495c01ecc9312836b2ba4e8d35118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pkgname=ray_translate
pkgver="stable"
pkgrel=3
pkgdesc="A simple raycast like translator from prompt."
arch=('x86_64')
license=('MIT')
depends=('rust' 'cargo' 'translate-shell')
makedepends=('rust' 'cargo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/veaquer/ray_translate/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('e5cbf3d427ff5091bccc3def587612c1f7fa5e5de901eaab3fb6d6ec152840e5')

build() {
    cd "$srcdir/$pkgname-$pkgver"
    cargo build --release
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    install -Dm755 "target/release/ray_translate" "$pkgdir/usr/bin/ray_translate"
}