blob: 545e4efd5df377155c3118353f85a7f5f1f3b661 (
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
|
# Maintainer: kyndair <kyndair at gmail dot com>
pkgname=surfshark-wireguard-git
_pkgname=linux-surfshark-wireguard
pkgver=0.5.1.beta.r0.gaa24f40
pkgrel=1
pkgdesc="Sets-up a vpn interface using wg-quick"
arch=('any')
url="https://github.com/kyndair/linux-surfshark-wireguard"
license=('MIT')
depends=('wireguard-tools' 'jq' 'curl')
provides=('surfshark-wireguard')
install=surfshark-wireguard-git.install
source=('git+https://github.com/kyndair/linux-surfshark-wireguard.git'
'https://addons.mozilla.org/user-media/addon_icons/963/963216-64.png'
'surfshark-wireguard.desktop')
sha256sums=('SKIP'
'df9dda0009bf36dec4caf5de47f07ad36d12fe7b96ba2faa22448f5e124bc012'
'6c757b548423adeedd0e0b3a07ab0eece0e483b795ea760f1de20e683d73492e')
# update the package version to the current git version
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}
package() {
# install script and config
install -Dm770 "${srcdir}/${_pkgname}/gen_wg_config.bash" "${pkgdir}/opt/surfshark-wireguard/gen_wg_config.sh"
install -Dm660 "${srcdir}/${_pkgname}/config.json" "${pkgdir}/opt/surfshark-wireguard/config.json"
chmod 770 "${pkgdir}/opt/surfshark-wireguard/"
# install icon
install -Dm644 "${srcdir}/963216-64.png" "${pkgdir}/usr/share/pixmaps/surfshark-wireguard.png"
# install readme
install -Dm660 "${srcdir}/${_pkgname}/README.md" "${pkgdir}/usr/share/doc/surfshark-wireguard/README.md"
# install link
mkdir "${pkgdir}/usr/bin"
ln -s /opt/surfshark-wireguard/gen_wg_config.sh "${pkgdir}/usr/bin/surfshark-wireguard"
install -Dm644 "${srcdir}/surfshark-wireguard.desktop" "${pkgdir}/usr/share/applications/surfshark-wireguard.desktop"
}
|