summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0f6ac04e6beb06034b037fdaef5798728ac4b85 (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
# Maintainer: Loic Coyle <loic.coyle@hotmail.fr>

_pkgname=rofi-nordvpn
pkgname="${_pkgname}-git"
pkgver=r7.26ddf82
pkgrel=1
pkgdesc='A script to manage nordvpn connections.'
arch=('any')
url='https://github.com/loiccoyle/rofi-nordvpn'
license=('MIT')
depends=('rofi' 'nordvpn-bin')
makedepends=('git')
source=("${_pkgname}::git+https://github.com/loiccoyle/rofi-nordvpn.git")
md5sums=('SKIP')

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

package() {
  cd "${_pkgname}"
  install -D -m 755 -t "${pkgdir}/usr/bin/" rofi-nordvpn
  install -D -m 644 -t "${pkgdir}/usr/share/licenses/${_pkgname}/" LICENSE
}