blob: 9c209aecebb9368f4fa48187a74c032ad8b6a380 (
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
35
36
37
|
# Maintainer: Lu Xu <oliver_lew at outlook dot com>
pkgname=javinizer-bin
pkgver=1.4.0
pkgrel=1
pkgdesc="A metadata scraper and file organizer for JAV, with CLI, TUI, REST API, and a web UI"
arch=('x86_64' 'aarch64')
url="https://github.com/javinizer/javinizer-go"
license=('MIT')
provides=('javinizer')
conflicts=('javinizer')
source_x86_64=(
"${pkgname}-${pkgver}-x86_64::${url}/releases/download/v${pkgver}/javinizer-linux-amd64"
"LICENSE::https://raw.githubusercontent.com/javinizer/javinizer-go/v${pkgver}/LICENSE")
source_aarch64=(
"${pkgname}-${pkgver}-aarch64::${url}/releases/download/v${pkgver}/javinizer-linux-arm64"
"LICENSE::https://raw.githubusercontent.com/javinizer/javinizer-go/v${pkgver}/LICENSE")
sha256sums_x86_64=('fc06e2b9fecc80a33298e0a350c68672db911c3180bb7cc7227005f68542231c'
'bc81733f13dea3d54a631b130ef44b513669de176868f26431d923921480a4f3')
sha256sums_aarch64=('36ea4f95088ae609a17056a10066b3e81cafd739d10e637129faae2831d24995'
'bc81733f13dea3d54a631b130ef44b513669de176868f26431d923921480a4f3')
package() {
cd "${srcdir}"
local _bin="${pkgname}-${pkgver}-${arch}"
chmod +x "${_bin}"
install -Dm755 "${_bin}" "${pkgdir}/usr/bin/javinizer"
install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
./"${_bin}" completion bash 2>/dev/null \
| install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/javinizer"
./"${_bin}" completion zsh 2>/dev/null \
| install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_javinizer"
./"${_bin}" completion fish 2>/dev/null \
| install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/javinizer.fish"
}
|