blob: 495d9fab109435aa1f95991619751d0a96bb641b (
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
33
34
|
# Maintainer: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
pkgname=rng-rename
pkgver=0.6.5
pkgrel=1
pkgdesc="A CLI tool to rename files to randomly generated strings."
arch=("x86_64" "i686" "armv6h" "armv7h" "aarch64")
url="https://github.com/cyqsimon/rng-rename"
license=("AGPL3")
depends=("gcc-libs")
makedepends=("cargo")
source=("${pkgname}-${pkgver}.tar.gz::https://static.crates.io/crates/${pkgname}/${pkgname}-${pkgver}.crate")
sha512sums=('607da096295114123a635214189190c0dac257f43727f53cdc0be93548b1393c7923110c2cf82c600af5c32267f95c4a0d7222b1473036c555e33c6580978d17')
prepare() {
cd ${pkgname}-${pkgver}
cargo fetch --locked
}
build() {
cd ${pkgname}-${pkgver}
cargo build --release --frozen
target/release/rng-rename complete bash > completion.bash
target/release/rng-rename complete fish > completion.fish
target/release/rng-rename complete zsh > completion.zsh
}
package() {
cd ${pkgname}-${pkgver}
install -Dm755 -t "${pkgdir}/usr/bin" target/release/rng-rename
install -Dm644 completion.bash "${pkgdir}/usr/share/bash-completion/completions/rng-rename"
install -Dm644 completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/rng-rename.fish"
install -Dm644 completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_rng-rename"
}
|