Package Details: primitive r152.0373c21-2

Git Clone URL: https://aur.archlinux.org/primitive.git (read-only, click to copy)
Package Base: primitive
Description: Reproducing images with geometric primitives
Upstream URL: https://github.com/fogleman/primitive
Keywords: art go golang image
Licenses: MIT
Conflicts: primitive
Provides: primitive
Submitter: neitsab
Maintainer: Stunkymonkey
Last Packager: Stunkymonkey
Votes: 4
Popularity: 0.64
First Submitted: 2016-11-22 23:49 (UTC)
Last Updated: 2024-11-25 22:54 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

Stunkymonkey commented on 2024-11-25 22:59 (UTC)

@neitsab just tested your changes and applied them.

FYI: I created this package, because the primitive-git was taken and my orhan-request was not allowed... So i worked around it...

neitsab commented on 2024-11-25 20:46 (UTC) (edited on 2024-11-25 20:46 (UTC) by neitsab)

Ok, apparently this package will get merged into the properly named alternative primitive-git, which was orphaned following my request to delete it... You get the idea.

I've just pushed an updated PKGBUILD there which hopefully will content everybody.

Let me know if something's wrong, but it builds in a clean chroot and worked on the test file I threw at it.

neitsab commented on 2024-11-25 12:43 (UTC) (edited on 2024-11-25 12:44 (UTC) by neitsab)

@Dominiquini This package is old, it hasn't been updated since 2020.

Edit the PKGBUILD to replace L27-28 with

        GOPATH="$srcdir" go install -v -gcflags "-trimpath $GOPATH/src" \
          "${url#https://}@latest"

That is, replace get with install and add @latest at after "${url#https://}. Full diff:

diff --git a/PKGBUILD b/PKGBUILD
index e4d5f8b..b0b1220 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,8 +24,8 @@ pkgver() {

 build() {
    unset GOBIN
-   GOPATH="$srcdir" go get -v -gcflags "-trimpath $GOPATH/src" \
-     "${url#https://}"
+   GOPATH="$srcdir" go install -v -gcflags "-trimpath $GOPATH/src" \
+     "${url#https://}@latest"
 }

 package() {

Dominiquini commented on 2024-11-25 12:22 (UTC) (edited on 2024-11-25 12:22 (UTC) by Dominiquini)

Error when installing:

go: go.mod file not found in current directory or any parent directory. 'go get' is no longer supported outside a module. To build and install a command, use 'go install' with a version, like 'go install example.com/cmd@latest' For more information, see https://golang.org/doc/go-get-install-deprecation or run 'go help get' or 'go help install'.

Stunkymonkey commented on 2019-12-20 21:59 (UTC) (edited on 2019-12-20 21:59 (UTC) by Stunkymonkey)

if the GOBIN variable is set the go get will use this as the install location, and the build will fail.

neitsab commented on 2017-01-13 13:22 (UTC)

I'll be away from keyboard and good Internet connectivity for the next few months. Provided this package doesn't (seem to) have a lot of users, I will retain its maintainership meanwhile. If it gets outdated and someone wants to take it up, fill an orphan request and take ownership, you have my blessing! Cheers