lib32-libmaxminddb

LOW
maintainer ChrisTX 0 votes scanned 2026-11-03 14:04:44.822193
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

1# Maintainer: Christian Pfeiffer <cpfeiffer at rev-crew dot info>
2# shellcheck disable=SC2034,SC2154
3# shellcheck shell=bash
4
5pkgname=lib32-libmaxminddb
6_name=libmaxminddb
7pkgver=1.14.1
8pkgrel=1
9pkgdesc="MaxMindDB GeoIP2 database library (32-bit)"
10arch=(x86_64)
11url="https://maxmind.github.io/libmaxminddb/"
12license=(Apache-2.0)
13# libmaxminddb: the headers
14depends=(lib32-gcc-libs lib32-glibc libmaxminddb)
15provides=(libmaxminddb.so)
16source=("https://github.com/maxmind/libmaxminddb/releases/download/$pkgver/$_name-$pkgver.tar.gz")
17sha512sums=('d6e5f0e7fff896ac63525bcf01b06944388c6756889ac533dfaf416fd2e494953f31ede1a2352bdcf5018e2544b65eb3328a22f9233c50e01e0809a5bc6486cc')
18b2sums=('8ced4fe8162f603c734a35d86f01bec4a03c6d4bca0410572f3fa201d06cbf49c0459f25320697186c9c13a11616a3b3f64819ed1b3004bc3c9b15898696ac8c')
19
20build() {
21 cd "$_name-$pkgver" || exit
22 export CC="gcc -m32"
23 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
24 ./configure --prefix=/usr --libdir=/usr/lib32
25 make
26}
27
28check() {
29 cd "$_name-$pkgver" || exit
30 make check
31}
32
33package() {
34 cd "$_name-$pkgver" || exit
35 make DESTDIR="$pkgdir" install
36
37 # The headers are libmaxminddb's. Its maxminddb_config.h is the 64-bit one, with an unsigned
38 # __int128, which 32-bit x86 doesn't have: the 32-bit library uses a byte array, which consumers
39 # define through pkg-config, as the header only sets these when they aren't defined.
40 local _config
41 for _config in MMDB_UINT128_USING_MODE MMDB_UINT128_IS_BYTE_ARRAY; do
42 grep -q "^#define $_config [01]$" include/maxminddb_config.h || exit
43 done
44 sed -i "s|^Cflags: .*|& $(sed -n 's/^#define \(MMDB_UINT128_[A-Z_]*\) \([01]\)$/-D\1=\2/p' \
45 include/maxminddb_config.h | tr '\n' ' ' | sed 's/ $//')|" "$pkgdir/usr/lib32/pkgconfig/$_name.pc"
46 rm -r "${pkgdir:?}"/usr/{bin,include,share}
47 install -Dm644 LICENSE NOTICE -t "$pkgdir/usr/share/licenses/$pkgname"
48}
49

Scan history

Scanned at (UTC)SeverityRules
2026-11-03 14:04:44 Low 1
2026-11-03 12:04:35 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