termux-packages/x11-packages/wireshark-gtk/build.sh

34 lines
1.2 KiB
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_HOMEPAGE=https://www.wireshark.org/
TERMUX_PKG_DESCRIPTION="Network protocol analyzer"
2018-09-11 22:44:55 +02:00
TERMUX_PKG_VERSION=2.6.3
2018-09-22 12:48:19 +02:00
TERMUX_PKG_REVISION=1
2018-09-10 00:42:26 +02:00
TERMUX_PKG_SRCURL=https://www.wireshark.org/download/src/wireshark-${TERMUX_PKG_VERSION}.tar.xz
2018-09-11 22:44:55 +02:00
TERMUX_PKG_SHA256=d158a8a626dc0997a826cf12b5316a3d393fb9f93d84cc86e75b212f0044a3ec
2018-09-10 00:42:26 +02:00
TERMUX_PKG_DEPENDS="c-ares, desktop-file-utils, glib, hicolor-icon-theme, libandroid-shmem, libgcrypt, libgnutls, libgtk3, liblua52, liblz4, libmaxminddb, libnghttp2, libnl, libpcap, libssh, libxml2"
TERMUX_PKG_CONFLICTS="tshark, wireshark, wireshark-cli"
TERMUX_PKG_PROVIDES="tshark, wireshark, wireshark-cli"
TERMUX_PKG_REPLACES="tshark, wireshark, wireshark-cli"
2018-09-22 18:33:40 +02:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-gtk=3 --with-qt=no"
2018-09-10 00:42:26 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
2018-09-11 22:44:55 +02:00
export CFLAGS=$(echo $CFLAGS | sed 's@-Oz@-Os@g')
2018-09-10 00:42:26 +02:00
export LIBS=" -landroid-shmem"
}
termux_step_post_configure() {
## prebuild libwsutil & libwscodecs for target (needed for plugins/codecs/l16_mono)
cd ./wsutil && {
make
cd -
}
cd ./codecs && {
make
cd -
}
}