upgpkg: alhp-keyring 20230504-4 upgpkg: alhp-mirrorlist 20230831-1 upgpkg: antidot 0.6.3-1 upgpkg: asus-numpad 0.4.1-6 upgpkg: coreapps-meta 1-1 upgpkg: eggdrop 1.9.3-1 upgpkg: hide-client 0.9.8-2 upgpkg: jellyfin-mpv-shim 2.6.0-1 upgpkg: mmdbinspect 0.1.1-1 upgpkg: motion-git 4.4.0.r44.db94a89-1 upgpkg: motionplus 0.1.1-4 upgpkg: mpv-shim-default-shaders 2.1.0-1 upgpkg: perl-filehandle-unget 0.1634-2 upgpkg: perl-mail-mbox-messageparser 1.5111-1 upgpkg: perl-net-ftpssl 0.42-1 upgpkg: pyfan 1.6.1-1 upgpkg: python-derpconf 0.8.4-1 upgpkg: python-jellyfin-apiclient 1.9.2-1 upgpkg: python-libthumbor 2.0.2-2 upgpkg: python-mpv-jsonipc 1.2.0-1 upgpkg: python-preggy 1.4.4-1 upgpkg: python-pyssim 0.6-1 upgpkg: python-pystray 0.19.5-1 upgpkg: python-simple-pid 1.0.1-1 upgpkg: python-socketfromfd 0.2.0-1 upgpkg: rvpk 1.1.0-1 upgpkg: thumbor 7.7.3-1 upgpkg: unvpk-git r108.1f1f44f-1 upgpkg: victoriametrics 1.93.5-1 syntax changes
63 lines
1.7 KiB
Bash
63 lines
1.7 KiB
Bash
# Maintainer: Giovanni Harting <539@idlegandalf.com>
|
|
# Contributor: Leonard Janis Robert König <ljrk at ljrk dot org>
|
|
|
|
pkgname=hide-client
|
|
_pkgname=hide.client.linux
|
|
pkgver=0.9.8
|
|
pkgrel=2
|
|
pkgdesc="Hide.me CLI VPN client for Linux"
|
|
arch=(x86_64 aarch64 armv7h armv6h)
|
|
url="https://github.com/eventure/hide.client.linux"
|
|
license=(GPL2)
|
|
depends=(glibc)
|
|
makedepends=(go)
|
|
backup=('etc/hide.me/config')
|
|
source=("https://github.com/eventure/$_pkgname/archive/$pkgver.zip")
|
|
b2sums=('ed3bc28dbc40288bfbd0ea9adb643c484e9a19bce582719834a65749ae1494d5c7c32685a1feadd6eecccc1d516d9ccaf8297192a2b464b919fde586368219ac')
|
|
|
|
prepare() {
|
|
cd "$_pkgname-$pkgver"
|
|
|
|
sed -e "s|CA.pem|/usr/share/hide.me/CA.pem|" \
|
|
-e "s|accessToken.txt|/etc/hide.me/accessToken.txt|" \
|
|
-i configuration.go
|
|
|
|
sed -e "s|/opt/hide.me/hide.me|/usr/bin/hide.me|" \
|
|
-e "s|WorkingDirectory=/opt/hide.me|WorkingDirectory=/etc/hide.me|" \
|
|
-e "s|ReadWritePaths=/opt/hide.me /etc|ReadWritePaths=/etc/hide.me|" \
|
|
-e "s|/opt/hide.me/config|/etc/hide.me/config|" \
|
|
-i 'hide.me@.service'
|
|
}
|
|
|
|
build() {
|
|
cd "$_pkgname-$pkgver"
|
|
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
|
|
go build \
|
|
-trimpath \
|
|
-buildmode=pie \
|
|
-mod=readonly \
|
|
-modcacherw \
|
|
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
|
|
-o hide.me \
|
|
.
|
|
}
|
|
|
|
package() {
|
|
cd "$_pkgname-$pkgver"
|
|
|
|
install -Dm755 -t "$pkgdir"/usr/bin hide.me
|
|
install -Dm644 -t "$pkgdir"/usr/share/hide.me CA.pem
|
|
|
|
# For (system-wide) accessToken.txt
|
|
install -dm755 "$pkgdir"/etc/hide.me
|
|
install -Dm644 -t "$pkgdir"/etc/hide.me config
|
|
install -Dm644 -t "$pkgdir"/usr/lib/systemd/system hide.me@.service
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|