annotate desktop/zenity/zenity.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 297b5eef115e
children 57dc83a39b13
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
487
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=zenity
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=3.32.0
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGLICENSE="LGPLv20"
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="dialog boxes utility from shell scripts"
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/3.32/$PKGNAME-$PKGVERSION.tar.xz"
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
24 PKGDEPENDS="libnotify"
487
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 PKGOPTIONS="WEBKIT"
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
26
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 : ${CHOST:=$(uname -m)-linux-musl}
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${CBUILD:=$(uname -m)-linux-musl}
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${CC:=clang}
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${CFLAGS:=-O2}
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 : ${LDFLAGS:=}
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 : ${LIBS:=}
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 : ${WEBKIT:=no}
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
34
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 if [ "$WEBKIT" = "yes" ]; then
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 PKGDEPENDS="www/webkit2gtk $PKGDEPENDS"
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 with_webkit="--enable-webkitgtk"
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 else
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 with_webkit="--disable-webkitgtk"
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 fi
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
41
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
42 rm -rf $PKGNAME-$PKGVERSION
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
43 tar xvf $PKGNAME-$PKGVERSION.tar.xz
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
44 cd $PKGNAME-$PKGVERSION
487
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
45
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
46 CC="$CC" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
47 CFLAGS="$CFLAGS" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
48 LDFLAGS="$LDFLAGS" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
49 LIBS="$LIBS" \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
50 ./configure \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
51 --build=$CBUILD \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
52 --host=$CHOST \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
53 --prefix= \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
54 --enable-libnotify \
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
55 $with_webkit
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
56 make
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
57 make install DESTDIR=$DESTDIR
487
485b1028202d desktop/zenity: initial import, closes #1577
David Demelier <markand@malikania.fr>
parents:
diff changeset
58
1216
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
59 cd ..
6710613b88b9 misc: remove build function
David Demelier <markand@malikania.fr>
parents: 1115
diff changeset
60 rm -rf $PKGNAME-$PKGVERSION