network/glib-networking/glib-networking.sh

Thu, 14 Nov 2019 20:05:00 +0100

author
David Demelier <markand@malikania.fr>
date
Thu, 14 Nov 2019 20:05:00 +0100
changeset 1206
d78ffa493582
permissions
-rw-r--r--

network/glib-networking: initial import, closes #2433

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

mercurial