summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12357a321ae9348046bad6f59e1a98be9cb0261c (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
# Contributor: Henrik Hallberg <henrik@k2h.se>

pkgname=pvpn
pkgver=0.2.1.r11.g7b93132
pkgrel=1
pkgdesc="VPN over SSH"
arch=('any')
url="https://github.com/halhen/pvpn"
license=('BSD')
depends=('iproute2' 'openssh' 'bind' 'ppp')
makedepends=('git' 'asciidoc')
source=('git+https://github.com/takeshixx/pvpn.git')
md5sums=('SKIP')


pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$pkgname"
  PREFIX="/usr" make
}

package() {
  cd "$pkgname"
  make PREFIX="/usr" MANPREFIX="/usr/share/man/" DESTDIR="$pkgdir/" install
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: