aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wireguard-tools
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2018-03-31 00:33:40 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-04-02 07:22:00 +0000
commit948e30d91fc704323c6c7f910255d327821869ff (patch)
treecda1380e6d57637d779793cb36c8dfa3cf5dff0c /testing/wireguard-tools
parent538377b229a86c419c6f556cd2b3f0086b76d8b1 (diff)
downloadaports-948e30d91fc704323c6c7f910255d327821869ff.tar.bz2
aports-948e30d91fc704323c6c7f910255d327821869ff.tar.xz
testing/wireguard-tools: Fix examples installation path
WireGuard's examples directory should be installed to /usr/share/doc/wireguard-tools/examples, not /usr/share/doc/examples. It seems that this was intended in the APKBUILD, but the code that copies the examples directory relies on $_name, which is not set. Use $pkgname instead.
Diffstat (limited to 'testing/wireguard-tools')
-rw-r--r--testing/wireguard-tools/APKBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/wireguard-tools/APKBUILD b/testing/wireguard-tools/APKBUILD
index fcb0ae9ae4..dbad10ef9b 100644
--- a/testing/wireguard-tools/APKBUILD
+++ b/testing/wireguard-tools/APKBUILD
@@ -3,7 +3,7 @@
pkgname=wireguard-tools
pkgver=0.0.20180304
-pkgrel=1
+pkgrel=2
pkgdesc="Next generation secure network tunnel: userspace tools"
arch='all'
url='https://www.wireguard.com'
@@ -22,7 +22,7 @@ build() {
package() {
cd "$builddir"
- mkdir -p "$pkgdir"/usr/share/doc/$_name
+ mkdir -p "$pkgdir/usr/share/doc/$pkgname"
make -C src/tools \
DESTDIR="$pkgdir" \
@@ -32,7 +32,7 @@ package() {
install
find "$builddir"/contrib/examples -name '.gitignore' -delete
- cp -rf "$builddir"/contrib/examples "$pkgdir"/usr/share/doc/$_name/
+ cp -rf "$builddir"/contrib/examples "$pkgdir/usr/share/doc/$pkgname/"
}
bashcomp() {