Simple patches to enable compiling on ARM. VPCS works fine.
diff --git a/PKGBUILD b/PKGBUILD
index 92aa0a1..136e6ef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ _release='0.8.3'
pkgver=0.8.3.r231.a19e146
pkgrel=1
pkgdesc='Simple Virtual PC Simulator'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'aarch64')
url='https://github.com/GNS3/vpcs'
license=('BSD-2-Clause')
depends=('glibc')
@@ -45,7 +45,10 @@ build() {
'x86_64')
./mk.sh 'amd64'
;;
- *)
+ 'aarch64')
+ ./mk.sh 'aarch64'
+ ;;
+ *)
printf 'Architecture "%s" is not supported.\n' "${CARCH}"
exit
;;
diff --git a/src/mk.sh b/src/mk.sh
index 9504347..03adde3 100755
--- a/src/mk.sh
+++ b/src/mk.sh
@@ -62,6 +62,10 @@ if [ $arch = "amd64" -o $arch = "x86_64" -o $arch = "64" ]; then
CCOPT=$CCOPT" -m64"
fi
+if [ $arch = "aarch64" ]; then
+ CCOPT=$CCOPT""
+fi
+
if [ $os = "Darwin" ]; then
CCOPT=$CCOPT""
fi
Pinned Comments
Andrei_Korshikov commented on 2024-09-26 19:35 (UTC)
The package repository is mirrored to Codeberg and GitHub.