annotate desktop/dconf/dconf.sh @ 1305:d6172cfe210f

graphics/pixman: upgrade to 0.40.0
author David Demelier <markand@malikania.fr>
date Thu, 11 Nov 2021 20:27:07 +0100
parents 9867e578b1a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
1 #!/bin/sh
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
1288
9867e578b1a9 misc: update copyright years
David Demelier <markand@malikania.fr>
parents: 1222
diff changeset
3 # Copyright (c) 2019-2021 David Demelier <markand@malikania.fr>
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
1221
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
18 PKGNAME=dconf
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
19 PKGVERSION=0.32.0
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
20 PKGREVISION=1
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
21 PKGLICENSE="LGPL-2.1-only"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
22 PKGSUMMARY="configuration database system"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
23 PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/0.32/$PKGNAME-$PKGVERSION.tar.xz"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
24 PKGDEPENDS="bash-completion:build meson:build glib"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
25 PKGOPTIONS="VALA"
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
26
496
089b46d20c00 desktop: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 374
diff changeset
27 : ${CC:=clang}
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CFLAGS:=-O2}
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${LDFLAGS:=}
718
08f07e05c4ad desktop/dconf: add VALA option
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
30 : ${VALA:=yes}
08f07e05c4ad desktop/dconf: add VALA option
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
31
08f07e05c4ad desktop/dconf: add VALA option
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
32 if [ "$VALA" = "yes" ]; then
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 766
diff changeset
33 PKGDEPENDS="vala $PKGDEPENDS"
718
08f07e05c4ad desktop/dconf: add VALA option
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
34 with_vala="-D vapi=true"
08f07e05c4ad desktop/dconf: add VALA option
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
35 else
08f07e05c4ad desktop/dconf: add VALA option
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
36 with_vala="-D vapi=false"
08f07e05c4ad desktop/dconf: add VALA option
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
37 fi
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
38
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
39 build()
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
40 {
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
41 rm -rf $PKGNAME-$PKGVERSION
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
42 tar xvf $PKGNAME-$PKGVERSION.tar.xz
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
43 cd $PKGNAME-$PKGVERSION
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
44
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
45 # TODO: enable documentation once docbook-xml is there.
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
46 # https://gitlab.gnome.org/GNOME/dconf/issues/47
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
47 patch -p1 < ../patch-clang.patch
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
48 CC="$CC" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
49 CFLAGS="$CFLAGS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
50 LDFLAGS="$LDFLAGS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
51 meson . build \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
52 --prefix / \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
53 --buildtype release \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
54 --default-library shared \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
55 -D man=false \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
56 -D gtk_doc=false \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
57 $with_vala
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
58 ninja -C build
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
59 DESTDIR=$DESTDIR ninja -C build install
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
60 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
61
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
62 cd ..
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
63 rm -rf $PKGNAME-$PKGVERSION
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
64 }