summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fdff2fafff01f8d0a2fd5eaced3d67e9c7c4209c (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
# Maintainer: solsTiCe d'Hiver <solstice.dhiver@gmail.com>
pkgname=piavpn-manual-git
_pkgname=piavpn-manual
pkgver=r26.82ebed7
pkgrel=3
pkgdesc="Shell scripts to connect manually to PIA VPN"
arch=(any)
url="https://github.com/pia-foss/manual-connections"
license=('MIT')
depends=(curl jq openvpn wireguard-tools WIREGUARD-MODULE)
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
options=(!strip )
source=('git+https://github.com/pia-foss/manual-connections.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/manual-connections"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/manual-connections"
	mkdir -p "$pkgdir/opt/piavpn-manual"
	cp -r * "$pkgdir/opt/piavpn-manual"
	# reminder: MIT (and BSD, ISC, Python and OFL) are common licenses but file still needs to be installed in /usr/share/licenses/...
	mkdir -p "$pkgdir/usr/share/licenses/piavpn-manual-git"
	mv "$pkgdir/opt/piavpn-manual/LICENSE" "$pkgdir/usr/share/licenses/piavpn-manual-git"
}