tce-load -i gtk3-dev libpcap-dev gnutls-dev libgcrypt-dev sbc-dev

cd wireshark-1.12.4

cat > svnversion.h << "EOF"
#define SVNVERSION "TC"
#define SVNPATH "source"
EOF

cat > make-version.pl << "EOF"
#!/usr/local/bin/perl
EOF

CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --disable-static --localstatedir=/var --with-gtk3 --without-qt

find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \;

make
sudo make install

sudo chmod u+s /tmp/pkg/usr/local/bin/wireshark

sudo install -m644 -D wireshark.desktop /usr/local/share/applications/wireshark.desktop

sudo install -m644 -D image/wsicon48.png /usr/local/share/pixmaps/wireshark.png

sudo install -m644    image/*.png /usr/local/share/pixmaps/wireshark
sudo install -m644    image/*.ico /usr/local/share/pixmaps/wireshark
sudo install -m644    image/*.xpm /usr/local/share/pixmaps/wireshark
sudo install -m644    image/*.bmp /usr/local/share/pixmaps/wireshark

The Wireshark package has been configured with the following options.
             Build wireshark (Gtk+) : yes (with GTK+ 3)
                 Build wireshark-qt : no
                       Build tshark : yes
                     Build capinfos : yes
                      Build captype : yes
                      Build editcap : yes
                      Build dumpcap : yes
                     Build mergecap : yes
                   Build reordercap : yes
                    Build text2pcap : yes
                      Build randpkt : yes
                       Build dftest : yes
                     Build rawshark : yes

   Save files as pcap-ng by default : yes
  Install dumpcap with capabilities : no
             Install dumpcap setuid : no
                  Use dumpcap group : (none)
                        Use plugins : yes
                    Use Lua library : no
                 Use Python binding : no
                   Build rtp_player : no
             Build profile binaries : no
                   Use pcap library : yes
                   Use zlib library : yes
               Use kerberos library : no
                 Use c-ares library : no
               Use GNU ADNS library : no
                Use SMI MIB library : no
             Use GNU crypto library : yes
             Use SSL crypto library : no
           Use IPv6 name resolution : yes
                 Use gnutls library : yes
     Use POSIX capabilities library : no
                  Use GeoIP library : no
                     Use nl library : yes (v3)
              Use SBC codec library : yes
