1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
5 pkgname=(libproxy libproxy-webkit)
8 pkgdesc="Automatic proxy configuration management library"
9 url="https://libproxy.github.io/libproxy/"
12 depends=(gcc-libs glib2 dbus)
13 makedepends=(cmake python perl webkit2gtk git)
14 _commit=e78a5ccfe0a2340f2c73e419767f8492ffc2787a # tags/0.4.17
15 source=("git+https://github.com/libproxy/libproxy#commit=$_commit")
20 git describe --tags | sed 's/-/+/g'
28 cmake -S $pkgbase -B build \
30 -DCMAKE_BUILD_TYPE=None \
31 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
32 -DCMAKE_C_FLAGS="$CFLAGS" \
33 -DCMAKE_INSTALL_PREFIX=/usr \
34 -DCMAKE_SKIP_RPATH=ON \
35 -DLIBEXEC_INSTALL_DIR=/usr/lib \
36 -DPERL_VENDORINSTALL=yes \
42 cmake --build build --target test
46 local p="$1" f d; shift
48 d="$srcdir/$p/${f#$pkgdir/}"
49 mkdir -p "$(dirname "$d")"
51 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
56 optdepends=('networkmanager: NetworkManager configuration module'
58 'python: Python 3.x bindings'
59 'libproxy-webkit: PAC proxy support (via WebKit)')
60 provides+=(libproxy.so)
62 DESTDIR="$pkgdir" cmake --install build
65 _pick webkit "$pkgdir"/usr/lib/libproxy/*/modules/pacrunner_webkit.so
68 package_libproxy-webkit() {
69 pkgdesc="JavaScriptCore-based PAC proxy support for libproxy"
70 depends=(libproxy.so webkit2gtk)
71 replaces=('libproxy-mozjs<0.4.16-1')