db-move: moved webkit2gtk from [testing] to [extra] (x86_64)
[arch-packages.git] / libsoup / trunk / PKGBUILD
blob5e5a5c7a511db4cc7b25cb4c0bfe5d3f4479b21d
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgbase=libsoup
5 pkgname=(libsoup libsoup-docs)
6 pkgver=2.74.3
7 pkgrel=1
8 pkgdesc="HTTP client/server library for GNOME"
9 url="https://wiki.gnome.org/Projects/libsoup"
10 arch=(x86_64)
11 license=(LGPL)
12 depends=(
13   brotli
14   glib-networking
15   glib2
16   krb5
17   libpsl
18   libsysprof-capture
19   libxml2
20   sqlite
22 makedepends=(
23   git
24   gobject-introspection
25   gtk-doc
26   meson
27   samba
28   vala
30 checkdepends=(
31   apache
32   php-apache
34 _commit=4a6b9178ded85e269872ffedfb2b18f2754a75d9  # tags/2.74.3^0
35 source=("git+https://gitlab.gnome.org/GNOME/libsoup.git#commit=$_commit"
36         disable-flaky-test.diff)
37 b2sums=('SKIP'
38         '4d71171b26ed107884a22696f9df1609c45c377e27baaaeb4ec5d890f9fbd62f09607ba3da0acdb42b4f86b9e828014471e6731437ec80de3b6ad98d7f0a2f60')
40 pkgver() {
41   cd libsoup
42   git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
45 prepare() {
46   cd libsoup
48   # https://gitlab.gnome.org/GNOME/libsoup/-/issues/120
49   git apply -3 ../disable-flaky-test.diff
52 build() {
53   local meson_options=(
54     -D gtk_doc=true
55   )
56   arch-meson libsoup build "${meson_options[@]}"
57   meson compile -C build
60 check() {
61   meson test -C build --print-errorlogs
64 package_libsoup() {
65   depends+=(
66     libbrotlidec.so
67     libgssapi_krb5.so
68     libg{lib,object,io}-2.0.so
69     libpsl.so
70   )
71   optdepends=('samba: Windows Domain SSO')
72   provides+=(libsoup{,-gnome}-2.4.so)
74   meson install -C build --destdir "$pkgdir"
76   mkdir -p doc/usr/share
77   mv {"$pkgdir",doc}/usr/share/gtk-doc
80 package_libsoup-docs() {
81   pkgdesc+=" (documentation)"
82   depends=()
84   mv doc/* "$pkgdir"
87 # vim:set sw=2 sts=-1 et: