network/glib-networking/glib-networking.sh

changeset 1206
d78ffa493582
equal deleted inserted replaced
1205:f1bdb6bab41c 1206:d78ffa493582
1 #!/bin/sh
2 #
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
4 #
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17
18 PKGNAME=glib-networking
19 PKGVERSION=2.63.1
20 PKGREVISION=1
21 PKGLICENSE="LGPLv21"
22 PKGSUMMARY="network-related giomodules for glib"
23 PKGWWW="https://gitlab.gnome.org/GNOME/glib-networking"
24 PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/${PKGVERSION%.*}/$PKGNAME-$PKGVERSION.tar.xz"
25 PKGDEPENDS="meson:build gnutls glib"
26
27 : ${CC:=clang}
28 : ${CFLAGS:=-O2}
29 : ${LDFLAGS:=}
30
31 build()
32 {
33 rm -rf $PKGNAME-$PKGVERSION
34 tar -xvf $PKGNAME-$PKGVERSION.tar.xz
35 cd $PKGNAME-$PKGVERSION
36
37 CC="$CC" \
38 CFLAGS="$CFLAGS" \
39 LDFLAGS="$LDFLAGS" \
40 meson . build \
41 --prefix / \
42 --buildtype release \
43 --default-library shared
44 ninja -C build
45 DESTDIR=$DESTDIR ninja -C build install
46
47 cd -
48 rm -rf $PKGNAME-$PKGVERSION
49 }

mercurial