Package Details: lib3ds 1.3.0-1

Git Clone URL: https://aur.archlinux.org/lib3ds.git (read-only, click to copy)
Package Base: lib3ds
Description: A library for managing 3D-Studio Release 3 and 4 .3DS files and a free alternative to Autodesk's 3DS File Toolkit.
Upstream URL: https://code.google.com/archive/p/lib3ds/
Licenses: LGPL
Submitter: ashman
Maintainer: jgwak
Last Packager: ashman
Votes: 30
Popularity: 0.096217
First Submitted: 2016-07-12 17:13 (UTC)
Last Updated: 2016-07-12 17:13 (UTC)

Latest Comments

bradpitcher commented on 2022-09-29 16:02 (UTC) (edited on 2022-09-29 19:23 (UTC) by bradpitcher)

Can you please enable aarch64? I was able to get it working with one minor adjustment. Configure was complaining that it couldn't guess the build type and that we should set it manually, but when I tried to pass arm64 or aarch64 it didn't know about those either. Following this stack overflow post I just set it to unknown and that works

diff --git a/.SRCINFO b/.SRCINFO
index 00950a4..f6b11b1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,10 +5,10 @@ pkgbase = lib3ds
        url = https://code.google.com/archive/p/lib3ds/
        arch = i686
        arch = x86_64
+       arch = aarch64
        license = LGPL
        depends = sh
        source = https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/lib3ds/lib3ds-1.3.0.zip
        sha256sums = f5b00c302955a67fa5fb1f2d3f2583767cdc61fdbc6fd843c0c7c9d95c5629e3

 pkgname = lib3ds
-
diff --git a/PKGBUILD b/PKGBUILD
index 9860f00..08f24a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgname=lib3ds
 pkgrel=1
 pkgver=1.3.0
 pkgdesc="A library for managing 3D-Studio Release 3 and 4 .3DS files and a free alternative to Autodesk's 3DS File Toolkit."
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'aarch64')
 url="https://code.google.com/archive/p/$pkgname/"
 license=('LGPL')
 depends=('sh')
@@ -12,8 +12,9 @@ source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.go
 sha256sums=('f5b00c302955a67fa5fb1f2d3f2583767cdc61fdbc6fd843c0c7c9d95c5629e3')

 build() {
+  [[ $CARCH == "aarch64" ]] && local build_flags="--build=unknown-unknown-linux"
   cd "$pkgname-$pkgver"
-  ./configure --prefix=/usr --enable-shared
+  ./configure --prefix=/usr --enable-shared ${build_flags:-}
   make
 }