summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9de59a05010751ac1051c1b6350c8143ac2ae8c6 (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
29
30
31
32
# Maintainer: G1ya777
pkgname=rename-gru-git
pkgver=0.8.2
pkgrel=1
pkgdesc="A CLI tool to batch rename files in the provided directory"
url="https://github.com/G1ya777/GRU"
license=("MIT")
arch=("any")
depends=()
makedepends=('rust' 'git')
provides=("rename-gru")
conflicts=()
source=("git+$url")
sha256sums=('SKIP')


prepare() {
	cd "GRU"
	cargo fetch --target "$CARCH-unknown-linux-gnu"	
}

build() {
	cd "GRU"
	export RUSTUP_TOOLCHAIN=stable
	export CARGO_TARGET_DIR=target
	cargo build --release --frozen --all-targets	
}

package() {
	cd "GRU"
    install -Dm755 target/release/rename-gru -t "$pkgdir/usr/bin"
}