1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: TryA <tryagainprod@gmail.com>
3 # Contributor: Jan de Groot <jgc@archlinux.org>
4 # Contributor: josephgbr <rafael.f.f1@gmail.com>
9 pkgdesc="Automatic proxy configuration management library (32-bit)"
10 url="https://libproxy.github.io/libproxy/"
25 _commit=caccaf28e3df6ea612d2d4b39f781c4324019fdb # tags/0.4.18
26 source=("git+https://github.com/libproxy/libproxy#commit=$_commit")
31 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
37 # Fix building without duktape
38 git cherry-pick -n c9b1f19c486b6ec590441b9c46965ab961d2677d
44 export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
46 cmake -S libproxy -B build -G Ninja \
48 -DCMAKE_BUILD_TYPE=None \
49 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
50 -DCMAKE_C_FLAGS="$CFLAGS" \
51 -DCMAKE_INSTALL_PREFIX=/usr \
52 -DCMAKE_SKIP_RPATH=ON \
53 -DLIBEXEC_INSTALL_DIR=/usr/lib \
55 -DWITH_{DUKTAPE,PERL,WEBKIT}=OFF
60 cmake --build build --target test
64 DESTDIR="$pkgdir" cmake --install build
65 rm -r "$pkgdir"/usr/{bin,include,lib,share}
68 # vim:set sw=2 sts=-1 et: