blob: 19b6dc78ea06303617d5b9580fbd02d977386313 (
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
|
# 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
}
|