Fabio Manganiello revised this gist . Go to revision
1 file changed, 86 insertions
PKGBUILD(file created)
@@ -0,0 +1,86 @@ | |||
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+r64+g44c21bf9 | |
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=44c21bf9677797f35f510c62af3279d873fa0fd3 # test/comment-libsoup2-check-in-init | |
36 | + | source=("git+https://git.platypush.tech/blacklight/libsoup.git#commit=$_commit") | |
37 | + | # source=("git+https://gitlab.gnome.org/GNOME/libsoup.git#commit=$_commit") | |
38 | + | b2sums=('SKIP') | |
39 | + | ||
40 | + | pkgver() { | |
41 | + | cd libsoup | |
42 | + | git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' | |
43 | + | } | |
44 | + | ||
45 | + | prepare() { | |
46 | + | cd libsoup | |
47 | + | } | |
48 | + | ||
49 | + | build() { | |
50 | + | local meson_options=( | |
51 | + | -D autobahn=disabled | |
52 | + | ) | |
53 | + | arch-meson libsoup build "${meson_options[@]}" | |
54 | + | meson compile -C build | |
55 | + | } | |
56 | + | ||
57 | + | check() { | |
58 | + | # Python's output buffering messes with the tests reading stdout lines from | |
59 | + | # http2-server.py through a pipe | |
60 | + | PYTHONUNBUFFERED=1 meson test -C build --print-errorlogs | |
61 | + | } | |
62 | + | ||
63 | + | package_libsoup3() { | |
64 | + | depends+=( | |
65 | + | libbrotlidec.so | |
66 | + | libgssapi_krb5.so | |
67 | + | libg{lib,object,io}-2.0.so | |
68 | + | libpsl.so | |
69 | + | ) | |
70 | + | optdepends=('samba: Windows Domain SSO') | |
71 | + | provides+=(libsoup-3.0.so) | |
72 | + | ||
73 | + | meson install -C build --destdir "$pkgdir" | |
74 | + | ||
75 | + | mkdir -p doc/usr/share | |
76 | + | mv {"$pkgdir",doc}/usr/share/doc | |
77 | + | } | |
78 | + | ||
79 | + | package_libsoup3-docs() { | |
80 | + | pkgdesc+=" (documentation)" | |
81 | + | depends=() | |
82 | + | ||
83 | + | mv doc/* "$pkgdir" | |
84 | + | } | |
85 | + | ||
86 | + | # vim:set sw=2 sts=-1 et: |
Newer
Older