From 95f0d4fb5fab663f3d316041616c12a6f470887c Mon Sep 17 00:00:00 2001 From: Local Dev Date: Thu, 29 May 2025 04:44:47 +0700 Subject: [PATCH] Alpine: use qrencode from libqrencode-tools package instead of building from source (#551) --- wireguard-install.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 27535aa..822e845 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -225,10 +225,7 @@ function installWireGuard() { pacman -S --needed --noconfirm wireguard-tools qrencode elif [[ ${OS} == 'alpine' ]]; then apk update - apk add wireguard-tools iptables build-base libpng-dev - curl -O https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz - tar xf qrencode-4.1.1.tar.gz - (cd qrencode-4.1.1 || exit && ./configure && make && make install && ldconfig) + apk add wireguard-tools iptables libqrencode-tools fi # Make sure the directory exists (this does not seem the be the case on fedora) @@ -513,7 +510,7 @@ function uninstallWg() { elif [[ ${OS} == 'alpine' ]]; then (cd qrencode-4.1.1 || exit && make uninstall) rm -rf qrencode-* || exit - apk del wireguard-tools build-base libpng-dev + apk del wireguard-tools libqrencode libqrencode-tools fi rm -rf /etc/wireguard