1
0
Fork 0
mirror of https://github.com/SinTan1729/aur-packages.git synced 2024-12-25 23:58:36 -06:00
aur-packages/movie-rename-bin/PKGBUILD

29 lines
1.1 KiB
Text
Raw Normal View History

2022-12-09 15:23:40 -06:00
# Maintainer: Sintan Santorum <c1scu0hh at anonaddy dot me>
pkgname="movie-rename-bin"
_pkgname="movie-rename"
pkgver=2.3.0
pkgrel=1
2022-12-09 15:23:40 -06:00
pkgdesc="A simple tool to rename movies, written in Rust."
arch=('x86_64')
url="https://github.com/SinTan1729/$_pkgname"
license=('GPL3')
provides=('movie-rename')
2023-03-13 12:04:24 -05:00
source=("$_pkgname-$pkgver.tar.gz::$url/releases/download/$pkgver/$_pkgname.tar.gz")
b2sums=('c8d33c7cf0a4a985a991cbc50337ad38a3791eaa259df2c5703f1da0af844233dfeb3082e7c2bc06b8ce292820db18f2c6561dd49adba4a422801af6c29821bb')
2022-12-09 15:23:40 -06:00
package() {
# binary
2023-07-30 13:18:32 -05:00
install -Dm755 ./$_pkgname "$pkgdir/usr/bin/$_pkgname"
2022-12-09 15:23:40 -06:00
# manpage
2023-07-30 13:18:32 -05:00
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
2022-12-09 15:23:40 -06:00
}