summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2607887eae3de42060c3193385b097a78cfa7f53 (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
# Maintainer: Ward Segers <w@rdsegers.be>

pkgname=nordselect
pkgver=1.4.5
pkgrel=1
pkgdesc="Select the ideal NordVPN server"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/editicalu/nordselect"
license=('MIT')
depends=('curl' 'liboping')
makedepends=('cargo')
provides=('nordselect')
source=("https://github.com/editicalu/$pkgname/archive/$pkgver.tar.gz")
sha512sums=("99cd767c3d604af8f174f65ffd26656c0bb223fe2400a08cf114017c2347824e3aa18346406538be310996375a861a4e23c8e9b4671785b4a480343f3f004c16")

prepare() {
	cd "$pkgname-$pkgver"
	cargo fetch
}

build() {
	cd "$pkgname-$pkgver"
	cargo build --release
}

package() {
	cd "$pkgname-$pkgver"
	install -Dm755 target/release/nordselect "$pkgdir/usr/bin/nordselect"
	# does not work in package. Run after installation if you want to be able to ping.
	#setcap cap_net_raw+ep "$pkgdir/usr/bin/nordselect"
}