desktop/libnotify/libnotify.sh

Fri, 15 Nov 2019 20:11:00 +0100

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:11:00 +0100
changeset 1210
422313c3fcbd
parent 1115
297b5eef115e
child 1216
6710613b88b9
permissions
-rw-r--r--

text/rarian: initial import, closes #2311

1115
297b5eef115e vanilla: change shebangs to /bin/sh
David Demelier <markand@malikania.fr>
parents: 1019
diff changeset
1 #!/bin/sh
486
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=libnotify
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=0.7.8
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGLICENSE="LGPLv21"
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="library for sending desktop notifications"
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="https://download.gnome.org/sources/$PKGNAME/0.7/$PKGNAME-$PKGVERSION.tar.xz"
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
24 PKGDEPENDS="gobject-introspection
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
25 meson:build
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
26 gdk-pixbuf
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
27 gtk
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 606
diff changeset
28 glib"
486
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
29
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 : ${CC:=clang}
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 : ${CFLAGS:=-O2}
496
089b46d20c00 desktop: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 486
diff changeset
32 : ${CXX:=clanclang++}
486
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 : ${CXXFLAGS:=-O2}
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 : ${LDFLAGS:=}
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
35
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 build()
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 {
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 rm -rf $PKGNAME-$PKGVERSION
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 519
diff changeset
39 tar xvf $PKGNAME-$PKGVERSION.tar.xz
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 519
diff changeset
40 cd $PKGNAME-$PKGVERSION
486
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
41
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 CC="$CC" \
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 CFLAGS="$CFLAGS" \
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 CXX="$CXX" \
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 CXXFLAGS="$CXXFLAGS" \
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 LDFLAGS="$LDFLAGS" \
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 meson \
519
824fb5352478 desktop: use new FHS
David Demelier <markand@malikania.fr>
parents: 496
diff changeset
48 --prefix / \
486
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
49 --buildtype release \
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 --default-library shared \
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 -D introspection=enabled \
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
52 . build
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 CC="$CC" ninja -C build
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
54 DESTDIR=$DESTDIR ninja -C build install
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
55
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 519
diff changeset
56 cd ..
486
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
57 rm -rf $PKGNAME-$PKGVERSION
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
58 }
27dcbb48fc30 desktop/libnotify: initial import, closes #1564
David Demelier <markand@malikania.fr>
parents:
diff changeset
59

mercurial