annotate desktop/dconf/dconf.sh @ 654:8100a1897e9e

core/busybox: improve build without binutils
author David Demelier <markand@malikania.fr>
date Mon, 29 Jul 2019 21:00:00 +0200
parents 25cecc6dca48
children 08f07e05c4ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #!/bin/sh
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
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
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=dconf
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=0.32.0
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGLICENSE="LGPLv21"
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="configuration database system"
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/0.32/$PKGNAME-$PKGVERSION.tar.xz"
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 PKGDEPENDS="core/bash-completion:build dev/meson:build lib/glib"
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
496
089b46d20c00 desktop: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 374
diff changeset
26 : ${CC:=clang}
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 : ${CFLAGS:=-O2}
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${LDFLAGS:=}
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
29
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 build()
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 {
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 rm -rf $PKGNAME-$PKGVERSION
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 519
diff changeset
33 tar xvf $PKGNAME-$PKGVERSION.tar.xz
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 519
diff changeset
34 cd $PKGNAME-$PKGVERSION
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
35
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 # TODO: enable documentation once docbook-xml is there.
496
089b46d20c00 desktop: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 374
diff changeset
37 # https://gitlab.gnome.org/GNOME/dconf/issues/47
089b46d20c00 desktop: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 374
diff changeset
38 patch -p1 < ../patch-clang.patch
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 CC="$CC" \
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 CFLAGS="$CFLAGS" \
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 LDFLAGS="$LDFLAGS" \
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 meson \
519
824fb5352478 desktop: use new FHS
David Demelier <markand@malikania.fr>
parents: 496
diff changeset
43 --prefix / \
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 --buildtype release \
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 --default-library shared \
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 -D man=false \
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 -D gtk_doc=false \
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 . build
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
49 ninja -C build
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 DESTDIR=$DESTDIR ninja -C build install
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
51
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 519
diff changeset
52 cd ..
374
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 rm -rf $PKGNAME-$PKGVERSION
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
54 }
753a7822d20c desktop/dconf: initial import, closes #1234
David Demelier <markand@malikania.fr>
parents:
diff changeset
55