Package Details: primitive-git r152.0373c21-1

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

Dependencies (3)

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:50 (UTC)

Okay, my request to delete this package triggered a chain reaction, and now apparently it's the other one that will get merged into this one.

So I've just pushed an updated PKGBUILD which hopefully should 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.

Cheers

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.

major commented on 2019-02-05 09:41 (UTC)

Hey!

I was looking through your PKGBUILD, and I don't think that you are supposed to build and install the package that way. It also causes wastage of bandwidth (not that much, but still). If you could update the PKGBUILD to follow the GO and VCS package guidelines, that would be great and create a perfect PKGBUILD.

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

zethra commented on 2016-11-24 18:57 (UTC)

Thanks for the feedback. If you'd like your version to stay up that's fine with me. I'd just suggest you add a pkgver function to update the version and add imagemagick as an optdepend as it's required for the animate gif functionality. Or if you'd prefer to co-maintain this package that's fine too.

neitsab commented on 2016-11-23 00:25 (UTC)

I started working on a PKGBUILD for primitive last week after reading up on it on HN, but I had to stop before completing it. I resumed today after verifying that it hadn't been uploaded yet, but I missed your package and so I went on and created one for the exact same version, simply called "primitive" after reading several times https://wiki.archlinux.org/index.php/Go_package_guidelines#Naming. This makes our packages redundant, although the PKGBUILDs themselves differ slightly. Why did you include imagemagick as a dependency? Also, the CVS tool used to download the sources (git) should be included in the makedepends array, as per https://wiki.archlinux.org/index.php/VCS_package_guidelines#Guidelines. Finally, it is good practice to install the package-specific MIT license, as described in https://wiki.archlinux.org/index.php/PKGBUILD#license. I also included other files provided with the source (bots/, examples/ and scripts/) for completeness sake. Tell me what you think of my PKGBUILD, so that we can discuss a merge of the two packages and maybe co-maintain this :)