zlib-ng-compat-static

LOW
maintainer Aleksej 0 votes base zlib-ng-static scanned 2026-09-12 15:12:25.546860
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1pkgname=(zlib-ng-static zlib-ng-compat-static)
2_pkgname=zlib-ng
3pkgver=2.3.3
4pkgrel=1
5pkgdesc='zlib replacement with optimizations for next generation systems'
6url='https://github.com/zlib-ng/zlib-ng'
7arch=('aarch64' 'x86_64')
8license=('Zlib')
9# depends=(glibc)
10makedepends=(musl gcc make gzip)
11options=(staticlibs)
12source=("${url}/archive/refs/tags/$pkgver/${_pkgname}-${pkgver}.tar.gz")
13sha256sums=('f9c65aa9c852eb8255b636fd9f07ce1c406f061ec19a2e7d508b318ca0c907d1')
14b2sums=('36fed55807a98bb17edbb53b5b9456c3023dcf5aea9208b453d1cd187c56bba56a6818c3a14a39bf271a7f6bcee5203cc1e4f7e8d1961e965661a232afd0778f')
15
16build() {
17 export CC="musl-gcc -fno-link-libatomic"
18 export CFLAGS="$CFLAGS -Os"
19 mv "${_pkgname}-${pkgver}" ${pkgname[0]}
20 cp -r ${pkgname[0]} ${pkgname[1]}
21 cd ${pkgname[0]}
22 ./configure \
23 --prefix=/usr \
24 --includedir=/usr/include/${pkgname[0]} \
25 --libdir=/usr/lib/${pkgname[0]} \
26 --static
27 make -j $(nproc)
28 cd ../${pkgname[1]}
29 ./configure \
30 --prefix=/usr \
31 --includedir=/usr/include/${pkgname[1]} \
32 --libdir=/usr/lib/${pkgname[1]} \
33 --static \
34 --zlib-compat
35 make -j $(nproc)
36}
37
38check() {
39 make -C ${pkgname[0]} EMU_RUN="" test
40 make -C ${pkgname[1]} EMU_RUN="" test
41}
42
43package_zlib-ng-static() {
44 provides=(zlib-ng-static)
45 cd ${pkgname[0]}
46 make DESTDIR="${pkgdir}" install
47 rm -rf "${pkgdir}/usr/share/man"
48 install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname[0]}"
49 install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname[0]}"
50}
51
52package_zlib-ng-compat-static() {
53 pkgdesc+=" (zlib compat)"
54 provides=(zlib-static)
55 cd ${pkgname[1]}
56 make DESTDIR="${pkgdir}" install
57 rm -rf "${pkgdir}/usr/share/man"
58 install -Dm 644 LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname[1]}"
59 install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname[1]}"
60}
61

Scan history

Scanned at (UTC)SeverityRules
2026-09-12 15:12:25 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion