mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 05:47:13 +02:00
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.
This commit is contained in:
parent
538377b229
commit
948e30d91f
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
pkgname=wireguard-tools
|
pkgname=wireguard-tools
|
||||||
pkgver=0.0.20180304
|
pkgver=0.0.20180304
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Next generation secure network tunnel: userspace tools"
|
pkgdesc="Next generation secure network tunnel: userspace tools"
|
||||||
arch='all'
|
arch='all'
|
||||||
url='https://www.wireguard.com'
|
url='https://www.wireguard.com'
|
||||||
@ -22,7 +22,7 @@ build() {
|
|||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
mkdir -p "$pkgdir"/usr/share/doc/$_name
|
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
|
||||||
|
|
||||||
make -C src/tools \
|
make -C src/tools \
|
||||||
DESTDIR="$pkgdir" \
|
DESTDIR="$pkgdir" \
|
||||||
@ -32,7 +32,7 @@ package() {
|
|||||||
install
|
install
|
||||||
|
|
||||||
find "$builddir"/contrib/examples -name '.gitignore' -delete
|
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() {
|
bashcomp() {
|
||||||
|
Loading…
Reference in New Issue
Block a user