desktop/startup-notification/startup-notification.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
361
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 PKGNAME=startup-notification
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
19 PKGVERSION=0.12
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGREVISION=1
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGLICENSE="LGPLv20 CUSTOM"
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGSUMMARY="startup notification protocol"
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGDOWNLOAD="http://www.freedesktop.org/software/$PKGNAME/releases/$PKGNAME-$PKGVERSION.tar.gz"
902
a133976e0783 vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents: 817
diff changeset
24 PKGDEPENDS="libx11 libxcb xcb-util"
361
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
25
496
089b46d20c00 desktop: convert packages to clang
David Demelier <markand@malikania.fr>
parents: 361
diff changeset
26 : ${CC:=clang}
361
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 : ${CFLAGS:=-O2}
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 : ${LDFLAGS:=}
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 : ${LIBS:=}
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
30
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
31 build()
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 {
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 rm -rf $PKGNAME-$PKGVERSION
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
34 tar xvf $PKGNAME-$PKGVERSION.tar.gz
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
35 cd $PKGNAME-$PKGVERSION
361
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
36
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 CC="$CC" \
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 CFLAGS="$CFLAGS" \
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 LDFLAGS="$LDFLAGS" \
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 LIBS="$LIBS" \
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 ./configure \
549
bad483aace64 vanilla: use prefix= instead
David Demelier <markand@malikania.fr>
parents: 519
diff changeset
42 --prefix= \
361
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 --enable-shared
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 make
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 make install DESTDIR=$DESTDIR
817
0e6c54d47dfb vanilla: fix many FHS issues
David Demelier <markand@malikania.fr>
parents: 745
diff changeset
46 find $DESTDIR -type f -name "*.la" -delete
361
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
47
606
25cecc6dca48 vanilla: use POSIX shell and busybox tar
David Demelier <markand@malikania.fr>
parents: 549
diff changeset
48 cd ..
361
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
49 rm -rf $PKGNAME-$PKGVERSION
846de8ee81b4 desktop/startup-notification: initial import, closes #1477
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 }

mercurial