Package Details: zlib-ng-git r1918.41faa084-1

Git Clone URL: https://aur.archlinux.org/zlib-ng-git.git (read-only, click to copy)
Package Base: zlib-ng-git
Description: Zlib data compression library for the next generation systems
Upstream URL: https://github.com/zlib-ng/zlib-ng
Licenses: custom
Submitter: lazerl0rd
Maintainer: MGislv
Last Packager: MGislv
Votes: 1
Popularity: 0.000000
First Submitted: 2020-04-15 00:54 (UTC)
Last Updated: 2022-03-31 13:40 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

xiota commented on 2023-11-22 19:45 (UTC)

This package could benefit from some changes (not tested):

provides=("zlib-ng=${pkgver%.r*}")
conflicts=("zlib-ng")

pkgver() {
    cd zlib-ng
    git describe --long --tags --exclude='*[a-zA-Z]*' \
        | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

lazerl0rd commented on 2021-03-18 02:38 (UTC)

@krevedko and @hadogenes, your problems should both be fixed.

krevedko commented on 2021-03-17 12:56 (UTC)

Current build procedure produces error:

/usr/bin/ld: inflate.lo: warning: relocation against `functable' in read-only section `.text'
/usr/bin/ld: trees.lo: relocation R_X86_64_PC32 against symbol `zng_length_code' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [Makefile:268: libz.so.1.2.11.zlib-ng] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

But, replacing ./configure ... with cmake ... (same as in zlib-ng PKGBUILD) fixes all problems.

hadogenes commented on 2020-09-07 12:47 (UTC) (edited on 2020-09-07 12:52 (UTC) by hadogenes)

Could you add

pkgver() {
       cd "zlib-ng"
       printf "%s.%s.%s" "${pkgver%%.*}" \
               "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}