upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / lib32-libproxy / trunk / PKGBUILD
blob27f450fa2e88cf602c3209ebeb9d4d10c96f2968
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>
6 pkgname=lib32-libproxy
7 pkgver=0.4.18
8 pkgrel=1
9 pkgdesc="Automatic proxy configuration management library (32-bit)"
10 url="https://libproxy.github.io/libproxy/"
11 arch=(x86_64)
12 license=(LGPL)
13 depends=(
14   lib32-dbus
15   lib32-gcc-libs
16   lib32-glib2
17   lib32-zlib
18   libproxy
20 makedepends=(
21   cmake
22   git
23   ninja
25 _commit=caccaf28e3df6ea612d2d4b39f781c4324019fdb  # tags/0.4.18
26 source=("git+https://github.com/libproxy/libproxy#commit=$_commit")
27 b2sums=('SKIP')
29 pkgver() {
30   cd libproxy
31   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
34 prepare() {
35   cd libproxy
37   # Fix building without duktape
38   git cherry-pick -n c9b1f19c486b6ec590441b9c46965ab961d2677d
41 build() {
42   export CC='gcc -m32'
43   export CXX='g++ -m32'
44   export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
46   cmake -S libproxy -B build -G Ninja \
47     -DBIPR=1 \
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 \
54     -DLIB_SUFFIX=32 \
55     -DWITH_{DUKTAPE,PERL,WEBKIT}=OFF
56   cmake --build build
59 check() {
60   cmake --build build --target test
63 package() {
64   DESTDIR="$pkgdir" cmake --install build
65   rm -r "$pkgdir"/usr/{bin,include,lib,share}
68 # vim:set sw=2 sts=-1 et: