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