1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/network_tray/network_tray.conf
3 # Copyright (C) 2021 - 2022 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 function build_nwtray {
14 rm -f network_tray.pot
15 $CC network_tray.c -o network_tray `pkg-config --cflags --libs gtk+-2.0`
16 xgettext --keyword="_" network_tray.c -o network_tray.pot
17 if [ -f network_tray ];then
18 mkdir -p $root/usr/local/lib/X11/mini-icons
19 cp -f networkblank.xpm $root/usr/local/lib/X11/mini-icons/
20 cp -f networkboth.xpm $root/usr/local/lib/X11/mini-icons/
21 cp -f networkdead.xpm $root/usr/local/lib/X11/mini-icons/
22 cp -f networkin.xpm $root/usr/local/lib/X11/mini-icons/
23 cp -f networkout.xpm $root/usr/local/lib/X11/mini-icons/
24 mkdir -p $root/root/Startup
25 cp -a -f network_tray $root/root/Startup/
26 mkdir -p $root/usr/share/doc/nls/network_tray
27 cp -a -f network_tray.pot $root/usr/share/doc/nls/network_tray/
32 hook_add postmake 5 "build_nwtray"
34 #oh dear, installs into root/Startup, but T2 doesn't put it into the binary tarball.
35 flistroot='root usr var'