Package Details: nali-go 0.8.1-1

Git Clone URL: https://aur.archlinux.org/nali-go.git (read-only, click to copy)
Package Base: nali-go
Description: An offline tool for querying IP geographic information and CDN provider.
Upstream URL: https://github.com/zu1k/nali
Licenses: MIT
Conflicts: nali
Provides: nali
Submitter: huyz
Maintainer: zu1k
Last Packager: zu1k
Votes: 3
Popularity: 0.000000
First Submitted: 2021-04-07 09:40 (UTC)
Last Updated: 2023-12-11 01:55 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

BryanLiang commented on 2024-05-11 02:41 (UTC) (edited on 2024-05-11 03:27 (UTC) by BryanLiang)

I failed to build this package in clean chroot environment. Here is the build log: https://pastebin.com/raw/JzVQcXem

UPDATE:

I modified the PKGBUILD and built successfully. Please consider apply the patch.

Here is the patch

diff --git a/PKGBUILD b/PKGBUILD
index b61f60b..819c691 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,10 +9,11 @@ pkgdesc='An offline tool for querying IP geographic information and CDN provider
 arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
 url="https://github.com/zu1k/nali"
 license=('MIT')
+depends=('glibc')
 makedepends=("go>=1.18")
 provides=('nali')
-conflicts=('nali')
-source=("https://github.com/zu1k/nali/archive/refs/tags/v$pkgver.tar.gz")
+conflicts=('nali' 'nali-go-bin' 'nali-go-git')
+source=("nali-go-v$pkgver.tar.gz::https://github.com/zu1k/nali/archive/refs/tags/v$pkgver.tar.gz")
 sha256sums=('8918e4c1c720dad1590a42fa04c5fea1ec862148127206e716daa16c1ce3561c')

 build() {
@@ -22,11 +23,12 @@ build() {
     -buildmode=pie \
     -mod=readonly \
     -modcacherw \
-    -ldflags "-linkmode external -X \"github.com/zu1k/nali/internal/constant.Version=$pkgver\" -extldflags $LDFLAGS" \
+    -ldflags "-linkmode external -X \"github.com/zu1k/nali/internal/constant.Version=$pkgver\" -extldflags \"$LDFLAGS\"" \
     -o $_pkgname .
 }

 package() {
   cd "$srcdir/$_pkgname-$pkgver"
   install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }