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/"
27 _commit=caccaf28e3df6ea612d2d4b39f781c4324019fdb # tags/0.4.18
28 source=("git+https://github.com/libproxy/libproxy#commit=$_commit")
33 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
41 cmake -S libproxy -B build -G Ninja \
43 -DCMAKE_BUILD_TYPE=None \
44 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
45 -DCMAKE_C_FLAGS="$CFLAGS" \
46 -DCMAKE_INSTALL_PREFIX=/usr \
47 -DCMAKE_SKIP_RPATH=ON \
48 -DLIBEXEC_INSTALL_DIR=/usr/lib \
49 -DPERL_VENDORINSTALL=yes \
50 -DWITH_{VALA,WEBKIT3}=ON
55 cmake --build build --target test
59 local p="$1" f d; shift
61 d="$srcdir/$p/${f#$pkgdir/}"
62 mkdir -p "$(dirname "$d")"
64 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
69 optdepends=('networkmanager: NetworkManager configuration module'
71 'python: Python 3.x bindings'
72 'libproxy-webkit: PAC proxy support (via WebKit)'
73 'pacrunner: PAC proxy support (via pacrunner)')
74 provides+=(libproxy.so)
76 DESTDIR="$pkgdir" cmake --install build
78 _pick webkit "$pkgdir"/usr/lib/libproxy/*/modules/pacrunner_webkit.so
81 package_libproxy-webkit() {
82 pkgdesc="JavaScriptCore-based PAC proxy support for libproxy"
83 depends=(libproxy webkit2gtk)
84 replaces=('libproxy-mozjs<0.4.16-1')
88 # vim:set sw=2 sts=-1 et: