# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgbase=libproxy
pkgname=(
libproxy
libproxy-docs
)
pkgver=0.5.6
pkgrel=1
pkgdesc="Automatic proxy configuration management library"
url="https://libproxy.github.io/libproxy/"
arch=(armv7h)
license=(LGPL-2.1-or-later)
depends=(
curl
duktape
gcc-libs
glib2
glibc
)
makedepends=(
gi-docgen
git
gobject-introspection
gsettings-desktop-schemas
meson
vala
)
source=(
"git+https://github.com/libproxy/libproxy#tag=$pkgver"
)
b2sums=('8831331926000acc0750e6a4c0b8fbba6fe49d0a3c453900831a228da09638373ea909c880a76b54b19a815f39788d230e5998ff3926ccb3b158b9c9f445ed3f')
prepare() {
cd libproxy
}
build() {
local meson_options=(
-D release=true
)
arch-meson libproxy build "${meson_options[@]}"
meson compile -C build
}
#check() {
# meson test -C build --print-errorlogs
#}
package_libproxy() {
provides=(libproxy.so)
conflicts=('libproxy-webkit<0.5.0-1')
meson install -C build --destdir "$pkgdir"
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
}
package_libproxy-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et: