Package Details: ivy-calc 0.3.4-1

Git Clone URL: https://aur.archlinux.org/ivy-calc.git (read-only, click to copy)
Package Base: ivy-calc
Description: An APL-like calculator.
Upstream URL: https://github.com/robpike/ivy
Keywords: ivy-calc ivy-lang ivyc ivycalc ivylang
Licenses: BSD
Conflicts: ivy-git, ivyc
Provides: ivyc
Submitter: howeyc
Maintainer: howeyc
Last Packager: howeyc
Votes: 1
Popularity: 0.000005
First Submitted: 2022-06-20 23:16 (UTC)
Last Updated: 2024-01-18 23:10 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

MarsSeed commented on 2022-06-22 17:35 (UTC)

Hi,

I have created the companion VCS package: ivy-calc-git. :)

I've noticed that some small adjustments can be added to the PKGBUILD of this stable package, to make it more optimal and conformant with Arch recommendations.

When commenting out a line with a beginning ##, I intend to suggest the deletion of that existing line.

depends=('glibc')                      # link-level dependency, reported by namcap / ldd
makedepends=('go>=1.17')
provides=("${_binname}=${pkgver}")     # versioned provides
conflicts=("${_binname}"
           'ivy-git<1'                 # former AUR VCS package (never reached pkgver>=1, used format: r{REVISION}.g*)
)
## replaces=('ivy-git')                #!! please remove this, now the ivy-calc-git package has the replaces line

## sha256sums=('36344aa566bcf59ee0733cb79f55261d1cb7c84c5534815a2e9177fcf06fa3d3') #!! recommend to replace with b2sums; recommended by Arch
b2sums=('6834a413b7bd30aff6c081598b3a66bd69430d76812ebd3a20b8c35c589a16f16be46818bb1daf732966317b3aa100ef457967aa6c336f7e86a51e7f866208b7')

[...]

build() {
    cd "$srcdir/${_srcname}-${pkgver}"
    export CGO_CPPFLAGS="${CPPFLAGS}"
    export CGO_CFLAGS="${CFLAGS}"
    export CGO_CXXFLAGS="${CXXFLAGS}"
##  export CGO_LDFLAGS="${LDFLAGS}" #!! remove this, seems it gets ignored

    # LDFLAGS needs to be added specifically to go linker's '-extldflags', otherwise it's ignored
    go build \
        -o "${_binname}" \
        -trimpath \
        -buildmode='pie' \
        -mod='readonly' \
        -modcacherw \
        -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
        .
}