blob: 47fc1c4bac9956392e63df7b5c80dd31ec1ac255 (
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
|
# Maintainer: jason ryan <jasonwryan@gmail.com>
# Contributor : Martin Wimpress <code@flexion.org>
pkgname=syncthing-bin
_realname=syncthing
pkgver=1.28.0
pkgrel=1
pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing: binary."
url="https://syncthing.net/"
arch=(x86_64 aarch64 armv7h i686)
license=('MPL2')
provides=('syncthing=${pkgver}')
conflicts=('syncthing')
install=${_realname}.install
source=("${_realname}-${pkgver}.tar.gz::https://github.com/syncthing/syncthing/archive/refs/tags/v${pkgver}.tar.gz")
source_x86_64=("https://github.com/syncthing/${_realname}/releases/download/v${pkgver}/${_realname}-linux-amd64-v${pkgver}.tar.gz")
source_aarch64=("https://github.com/syncthing/${_realname}/releases/download/v${pkgver}/${_realname}-linux-arm64-v${pkgver}.tar.gz")
source_armv7h=("https://github.com/syncthing/${_realname}/releases/download/v${pkgver}/${_realname}-linux-arm-v${pkgver}.tar.gz")
source_i686=("https://github.com/syncthing/${_realname}/releases/download/v${pkgver}/${_realname}-linux-386-v${pkgver}.tar.gz")
sha256sums=('ae0b96744a61d30e5fe7a6054d984c2a488c389e0e9baad8a868a71871ed1444')
sha256sums_x86_64=('9bc818c8e85c5dd3add93d53bf3a6e340aac67d26ebcdb7460c14a4870f51fb6')
sha256sums_aarch64=('db94c89bcd8fad8c6ecf2dde36c56635fcaecf1c8824d7e4206473dc718e9e26')
sha256sums_armv7h=('68fb80f289edeb39a027139a5dfce48cb9be495a892c0a7d309b7a65b20ea954')
sha256sums_i686=('2fc1e0e78208634a2700cac03edefadfc7494df3e3cd29b0a042134e55c90ca1')
package() {
case "$CARCH" in
arm64) _pkgarch="arm64"
;;
armv*) _pkgarch="arm"
;;
i686) _pkgarch="386"
;;
x86_64) _pkgarch="amd64"
;;
esac
cd "${_realname}-linux-${_pkgarch}-v${pkgver}"
install -D -m 755 ${_realname} "${pkgdir}/usr/bin/${_realname}"
install -D -m 644 README.txt "${pkgdir}/usr/share/doc/${_realname}/README.md"
install -D -m 644 "etc/linux-systemd/system/${_realname}@.service" \
"${pkgdir}/usr/lib/systemd/system/${_realname}@.service"
install -D -m 644 "etc/linux-systemd/user/${_realname}.service" \
"${pkgdir}/usr/lib/systemd/user/${_realname}.service"
install -D -m 644 "etc/linux-sysctl/30-${_realname}.conf" \
"${pkgdir}/usr/lib/sysctl.d/30-${_realname}.conf"
install -D -m 644 "etc/firewall-ufw/${_realname}" \
"${pkgdir}/etc/ufw/applications.d/ufw-${_realname}"
# man pages
cd "${srcdir}/${_realname}-${pkgver}/man"
install -Dm644 ${_realname}.1 "${pkgdir}"/usr/share/man/man1/${_realname}.1
for file in $(find . -name '*.5' -print); do
install -Dm644 $file "${pkgdir}"/usr/share/man/man5/$file
done
for file in $(find . -name '*.7' -print); do
install -Dm644 $file "${pkgdir}"/usr/share/man/man7/$file
done
}
# vim:set ts=2 sw=2 et:
|