zlib-ng-static
LOW
maintainer Aleksej
0 votes
scanned 2026-09-12 15:12:25.546860
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
1
pkgname=(zlib-ng-static zlib-ng-compat-static)
2
_pkgname=zlib-ng
3
pkgver=2.3.3
4
pkgrel=1
5
pkgdesc='zlib replacement with optimizations for next generation systems'
6
url='https://github.com/zlib-ng/zlib-ng'
7
arch=('aarch64' 'x86_64')
8
license=('Zlib')
9
# depends=(glibc)
10
makedepends=(musl gcc make gzip)
11
options=(staticlibs)
12
source=("${url}/archive/refs/tags/$pkgver/${_pkgname}-${pkgver}.tar.gz")
13
sha256sums=('f9c65aa9c852eb8255b636fd9f07ce1c406f061ec19a2e7d508b318ca0c907d1')
14
b2sums=('36fed55807a98bb17edbb53b5b9456c3023dcf5aea9208b453d1cd187c56bba56a6818c3a14a39bf271a7f6bcee5203cc1e4f7e8d1961e965661a232afd0778f')
15
16
build() {
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
38
check() {
39
make -C ${pkgname[0]} EMU_RUN="" test
40
make -C ${pkgname[1]} EMU_RUN="" test
41
}
42
43
package_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
52
package_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) | Severity | Rules |
|---|---|---|
| 2026-09-12 15:12:25 | Low | 1 |