diff options
author | Narrat | 2019-01-24 03:17:35 +0100 |
---|---|---|
committer | Narrat | 2019-01-24 03:17:35 +0100 |
commit | 9a4d58afe8f552461c1a0a76a0c4ccc07f633618 (patch) | |
tree | 3b84e66c592a6c89626d58d178f09eeb4b664391 /PKGBUILD | |
parent | d46a25111c1e82e21178fbdcbb0c9ed34edee0a8 (diff) | |
download | aur-9a4d58afe8f552461c1a0a76a0c4ccc07f633618.tar.gz |
pvpn: Small updates
Switch upstream to more active fork and build from latest master.
Small adjustments to the build process
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 15 insertions, 23 deletions
@@ -1,39 +1,31 @@ -# Maintainer: Henrik Hallberg <henrik@k2h.se> +# Contributor: Henrik Hallberg <henrik@k2h.se> + pkgname=pvpn -pkgver=0.2.1 +pkgver=0.2.1.r11.g7b93132 pkgrel=1 pkgdesc="VPN over SSH" arch=('any') url="https://github.com/halhen/pvpn" license=('BSD') -depends=('bash' 'iproute2' 'openssh' 'dnsutils' 'ppp') +depends=('iproute2' 'openssh' 'bind-tools' 'ppp') makedepends=('git' 'asciidoc') +source=('git+https://github.com/takeshixx/pvpn.git') +md5sums=('SKIP') -build() { - cd "$srcdir" - msg "Connecting to GIT server...." - - if [[ -d "$pkgname.git" ]]; then - cd "$pkgname.git" && git pull origin - msg "The local files are updated." - else - git clone "$url.git" "$pkgname.git" - fi - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$pkgname.git-build" - git clone "$srcdir/$pkgname.git" "$srcdir/$pkgname.git-build" - cd "$srcdir/$pkgname.git-build" - git checkout -q $pkgver +pkgver() { + cd "$pkgname" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} - make +build() { + cd "$pkgname" + PREFIX="/usr" make } package() { - cd "$srcdir/$pkgname.git-build" - make DESTDIR="$pkgdir/" install + cd "$pkgname" + make PREFIX="/usr" MANPREFIX="/usr/share/man/" DESTDIR="$pkgdir/" install install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |