lib32-libarchive

LOW
maintainer orphaned 0 votes scanned 2026-08-23 13:20:29.873780
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: David Runge <dvzrv@archlinux.org>
2
3pkgname=lib32-libarchive
4_name="${pkgname#lib32-}"
5pkgver=3.8.9
6pkgrel=1
7pkgdesc="Multi-format archive and compression library - 32bit"
8arch=(x86_64)
9url="https://libarchive.org"
10_url=https://github.com/libarchive/libarchive
11license=(
12 BSD-2-Clause
13 BSD-4-Clause-UC
14 'Apache-2.0 OR CC0-1.0 OR OpenSSL'
15)
16depends=(
17 $_name=$pkgver
18 lib32-acl
19 lib32-bzip2
20 lib32-glibc
21 lib32-libxml2
22 lib32-lz4
23 lib32-openssl
24 lib32-xz
25 lib32-zlib
26 lib32-zstd
27)
28makedepends=(
29 git
30)
31provides=(libarchive.so)
32source=($_name::git+$_url.git?signed#tag=v$pkgver)
33sha256sums=('033f8b22a755d01f87a79a5723ce4faed4d3772ab703f739c26ce32c6b1da0fd')
34validpgpkeys=('DB2C7CF1B4C265FAEF56E3FC5848A18B8F14184B' # Martin Matuska <martin@matuska.org>
35 '659C84C0E23EA1FA97E0B58CC040B508D63D2B36') # Martin Matuska <mm@FreeBSD.org>
36
37_backports=(
38)
39
40_reverts=(
41)
42
43prepare() {
44 # extract licenses
45 # NOTE: some license files are missing: https://github.com/libarchive/libarchive/issues/2385
46 sed -n '43,65p' $_name/COPYING > BSD-2-Clause.txt
47 sed -n '33,62p' $_name/$_name/archive_read_support_filter_compress.c > BSD-4-Clause-UC.txt
48
49 cd $_name
50
51 local _c _l
52 for _c in "${_backports[@]}"; do
53 if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
54 git log --oneline "${_l}" "${_c}"
55 git cherry-pick --mainline 1 --no-commit "${_c}"
56 done
57 for _c in "${_reverts[@]}"; do
58 if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
59 git log --oneline "${_l}" "${_c}"
60 git revert --mainline 1 --no-commit "${_c}"
61 done
62
63 autoreconf -fiv
64}
65
66build() {
67 local configure_options=(
68 --build=i686-pc-linux-gnu
69 --disable-bsdcat
70 --disable-bsdcpio
71 --disable-bsdtar
72 --disable-bsdunzip
73 --disable-static
74 --libdir=/usr/lib32
75 --libexecdir=/usr/lib32
76 --includedir=/usr/include/${_name}32
77 --prefix=/usr
78 --program-suffix="-32"
79 --without-nettle
80 )
81
82 export CFLAGS+=" -m32"
83 export CXXFLAGS+=" -m32"
84 export LDFLAGS+=" -m32"
85 export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
86
87 cd $_name
88 ./configure "${configure_options[@]}"
89 make
90}
91
92check() {
93 make -k check -C $_name
94}
95
96package() {
97 make DESTDIR="$pkgdir/" install-libLTLIBRARIES install-pkgconfigDATA -C $_name
98 install -vDm 644 ./*.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
99}
100

Scan history

Scanned at (UTC)SeverityRules
2026-08-23 13:20:29 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