1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/powerapplet_tray/powerapplet_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_patray {
14 rm -f powerapplet_tray
15 rm -f powerapplet_tray.pot
16 $CC `pkg-config --cflags --libs gtk+-2.0` powerapplet_tray.c -o powerapplet_tray
17 xgettext --keyword="_" powerapplet_tray.c -o powerapplet_tray.pot
18 if [ -f powerapplet_tray ];then
19 mkdir -p $root/root/Startup
20 cp -a -f powerapplet_tray $root/root/Startup/
21 mkdir -p $root/usr/share/doc/nls/powerapplet_tray
22 cp -a -f powerapplet_tray.pot $root/usr/share/doc/nls/powerapplet_tray/
27 hook_add postmake 5 "build_patray"
29 #oh dear, installs into root/Startup, but T2 doesn't put it into the binary tarball.
30 flistroot='root usr var'