#!/bin/sh
#141013 fix compile on quirky unicorn.
#180303 fix compile. ref: http://murga-linux.com/puppy/viewtopic.php?t=86687

rm -f network_tray
rm -f network_tray.pot

cp -f networkblank.xpm /usr/local/lib/X11/mini-icons/
cp -f networkboth.xpm /usr/local/lib/X11/mini-icons/
cp -f networkdead.xpm /usr/local/lib/X11/mini-icons/
cp -f networkin.xpm /usr/local/lib/X11/mini-icons/
cp -f networkout.xpm /usr/local/lib/X11/mini-icons/

sync
#180303  20231001
gcc -Wl,--no-as-needed `pkg-config --cflags --libs gtk+-2.0` network_tray.c -o network_tray
##180303 no, don't need fix (freememapplet_tray does)...
#gcc network_tray.c -o network_tray `pkg-config --cflags --libs gtk+-2.0`

xgettext --keyword="_" network_tray.c  -o network_tray.pot

sync
strip --strip-unneeded network_tray

echo 'done'
echo 'the images were copied to /usr/local/lib/X11/mini-icons/network*.xpm,'
echo 'be sure to put them in final pet package.'
