PKGBUILD
· 1.6 KiB · Bash
Raw
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgbase=libsoup3
pkgname=(libsoup3 libsoup3-docs)
pkgver=3.6.4+r65+g1296cbf9
pkgrel=1
pkgdesc="HTTP client/server library for GNOME"
url="https://wiki.gnome.org/Projects/libsoup"
arch=(x86_64)
license=(LGPL)
depends=(
brotli
glib-networking
glib2
krb5
libnghttp2
libpsl
libsysprof-capture
sqlite
)
makedepends=(
gi-docgen
git
gobject-introspection
meson
python-quart
samba
vala
)
checkdepends=(
apache
php-apache
)
_commit=1296cbf983f036f20262c453926dff77e1d6a852 # test/comment-libsoup2-check-in-init
source=("git+https://gitlab.gnome.org/GNOME/libsoup.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd libsoup
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd libsoup
}
build() {
local meson_options=(
-D autobahn=disabled
)
arch-meson libsoup build "${meson_options[@]}"
meson compile -C build
}
check() {
# Python's output buffering messes with the tests reading stdout lines from
# http2-server.py through a pipe
PYTHONUNBUFFERED=1 meson test -C build --print-errorlogs
}
package_libsoup3() {
depends+=(
libbrotlidec.so
libgssapi_krb5.so
libg{lib,object,io}-2.0.so
libpsl.so
)
optdepends=('samba: Windows Domain SSO')
provides+=(libsoup-3.0.so)
meson install -C build --destdir "$pkgdir"
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/doc
}
package_libsoup3-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et:
1 | # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org> |
2 | # Contributor: Jan de Groot <jgc@archlinux.org> |
3 | |
4 | pkgbase=libsoup3 |
5 | pkgname=(libsoup3 libsoup3-docs) |
6 | pkgver=3.6.4+r65+g1296cbf9 |
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 | libnghttp2 |
18 | libpsl |
19 | libsysprof-capture |
20 | sqlite |
21 | ) |
22 | makedepends=( |
23 | gi-docgen |
24 | git |
25 | gobject-introspection |
26 | meson |
27 | python-quart |
28 | samba |
29 | vala |
30 | ) |
31 | checkdepends=( |
32 | apache |
33 | php-apache |
34 | ) |
35 | _commit=1296cbf983f036f20262c453926dff77e1d6a852 # test/comment-libsoup2-check-in-init |
36 | source=("git+https://gitlab.gnome.org/GNOME/libsoup.git#commit=$_commit") |
37 | b2sums=('SKIP') |
38 | |
39 | pkgver() { |
40 | cd libsoup |
41 | git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' |
42 | } |
43 | |
44 | prepare() { |
45 | cd libsoup |
46 | } |
47 | |
48 | build() { |
49 | local meson_options=( |
50 | -D autobahn=disabled |
51 | ) |
52 | arch-meson libsoup build "${meson_options[@]}" |
53 | meson compile -C build |
54 | } |
55 | |
56 | check() { |
57 | # Python's output buffering messes with the tests reading stdout lines from |
58 | # http2-server.py through a pipe |
59 | PYTHONUNBUFFERED=1 meson test -C build --print-errorlogs |
60 | } |
61 | |
62 | package_libsoup3() { |
63 | depends+=( |
64 | libbrotlidec.so |
65 | libgssapi_krb5.so |
66 | libg{lib,object,io}-2.0.so |
67 | libpsl.so |
68 | ) |
69 | optdepends=('samba: Windows Domain SSO') |
70 | provides+=(libsoup-3.0.so) |
71 | |
72 | meson install -C build --destdir "$pkgdir" |
73 | |
74 | mkdir -p doc/usr/share |
75 | mv {"$pkgdir",doc}/usr/share/doc |
76 | } |
77 | |
78 | package_libsoup3-docs() { |
79 | pkgdesc+=" (documentation)" |
80 | depends=() |
81 | |
82 | mv doc/* "$pkgdir" |
83 | } |
84 | |
85 | # vim:set sw=2 sts=-1 et: |