blob: 64866a79a7b738fab2a1d95df5e1aa04ad6add0f (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: bethropolis <bethropolis at gmail dot com>
pkgname='localgo-bin'
pkgver=0.6.8
pkgrel=1
pkgdesc='LocalSend v2 protocol implementation. LAN file transfer CLI'
url='https://github.com/bethropolis/localgo'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('localgo')
conflicts=('localgo' 'localgo-git')
optdepends=('xclip: clipboard support on X11' 'xsel: clipboard support on X11 (alternative)' 'wl-clipboard: clipboard support on Wayland')
source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/bethropolis/localgo/releases/download/v${pkgver}/localgo_${pkgver}_linux_arm64.tar.gz")
sha256sums_aarch64=('29ac2ea912cf9ecfcbf98ae89e573c58ffdb07127a892666de8ed3def4469a95')
source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/bethropolis/localgo/releases/download/v${pkgver}/localgo_${pkgver}_linux_amd64.tar.gz")
sha256sums_x86_64=('4630612d619c0c4a06bd53e91904f80d647ec31fe64fcd77b9438f3a19c930b1')
package() {
install -Dm755 "./localgo" "${pkgdir}/usr/bin/localgo"
install -Dm644 "./LICENSE" \
"${pkgdir}/usr/share/licenses/localgo-bin/LICENSE"
install -Dm644 "./README.md" \
"${pkgdir}/usr/share/doc/localgo-bin/README"
install -Dm644 "./docs/GETTING_STARTED.md" \
"${pkgdir}/usr/share/doc/localgo-bin/GETTING_STARTED.md"
install -Dm644 "./scripts/localgo.env.example" \
"${pkgdir}/usr/share/doc/localgo-bin/localgo.env.example"
# Shell completions — optional, only install if the shell is present
if command -v bash &>/dev/null; then
install -Dm644 "./scripts/bash_completion.sh" \
"${pkgdir}/usr/share/bash-completion/completions/localgo"
fi
if command -v zsh &>/dev/null; then
install -Dm644 "./scripts/zsh_completion.zsh" \
"${pkgdir}/usr/share/zsh/site-functions/_localgo"
fi
if command -v fish &>/dev/null; then
install -Dm644 "./scripts/fish_completion.fish" \
"${pkgdir}/usr/share/fish/vendor_completions.d/localgo.fish"
fi
if [[ -f "./scripts/localgo-pkg.service" ]]; then
install -Dm644 "./scripts/localgo-pkg.service" \
"${pkgdir}/usr/lib/systemd/user/localgo.service"
fi
if command -v ufw &>/dev/null; then
install -Dm644 "./scripts/localgo.ufw" \
"${pkgdir}/etc/ufw/applications.d/ufw-localgo"
fi
}
|