mirror of
https://github.com/SinTan1729/aur-packages.git
synced 2024-12-25 07:48:35 -06:00
28 lines
1.1 KiB
Bash
28 lines
1.1 KiB
Bash
# Maintainer: Sintan Santorum <c1scu0hh at anonaddy dot me>
|
|
pkgname="movie-rename-bin"
|
|
_pkgname="movie-rename"
|
|
pkgver=2.3.0
|
|
pkgrel=1
|
|
pkgdesc="A simple tool to rename movies, written in Rust."
|
|
arch=('x86_64')
|
|
url="https://github.com/SinTan1729/$_pkgname"
|
|
license=('GPL3')
|
|
provides=('movie-rename')
|
|
source=("$_pkgname-$pkgver.tar.gz::$url/releases/download/$pkgver/$_pkgname.tar.gz")
|
|
b2sums=('c8d33c7cf0a4a985a991cbc50337ad38a3791eaa259df2c5703f1da0af844233dfeb3082e7c2bc06b8ce292820db18f2c6561dd49adba4a422801af6c29821bb')
|
|
package() {
|
|
# binary
|
|
install -Dm755 ./$_pkgname "$pkgdir/usr/bin/$_pkgname"
|
|
# manpage
|
|
install -Dm644 ./$_pkgname.1 "$pkgdir/usr/share/man/man1/$_pkgname.1"
|
|
# completions
|
|
if $(command -v fish &>/dev/null); then
|
|
install -Dm644 ./$_pkgname.fish "${pkgdir}/usr/share/fish/completions/$_pkgname.fish"
|
|
fi
|
|
if $(command -v bash &>/dev/null); then
|
|
install -Dm644 ./$_pkgname.bash "${pkgdir}/usr/share/bash-completion/completions/$_pkgname"
|
|
fi
|
|
if $(command -v zsh &>/dev/null); then
|
|
install -Dm644 ./$_pkgname.zsh "${pkgdir}/usr/share/zsh/site-functions/_$_pkgname"
|
|
fi
|
|
}
|