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_HOMEPAGE=https://www.wireshark.org/
TERMUX_PKG_DESCRIPTION="Network protocol analyzer"
TERMUX_PKG_LICENSE="GPL-2.0"
2020-05-14 00:01:15 +02:00
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
2020-02-05 21:20:47 +01:00
TERMUX_PKG_VERSION=2.6.14
TERMUX_PKG_REVISION=17
2020-02-05 21:20:47 +01:00
TERMUX_PKG_SRCURL=https://www.wireshark.org/download/src/all-versions/wireshark-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=c4d133c48f52d81fc334c30fa21e09be484d862c29310e57fc2532e5b572e9c4
2018-09-10 00:42:26 +02:00
TERMUX_PKG_DEPENDS="atk, c-ares, desktop-file-utils, gdk-pixbuf, glib, gtk3, hicolor-icon-theme, krb5, libandroid-shmem, libcairo, libcap, libgcrypt, libgnutls, libgpg-error, liblua52, liblz4, libmaxminddb, libnghttp2, libnl, libpcap, libssh, libxml2, pango, zlib"
2018-09-10 00:42:26 +02:00
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() {
export CFLAGS=$(echo $CFLAGS | sed 's@-Oz@-Os@g')
export LIBS=" -landroid-shmem"
2018-09-10 00:42:26 +02:00
}
termux_step_post_configure() {
## prebuild libwsutil & libwscodecs for target (needed for plugins/codecs/l16_mono)
cd ./wsutil && {
make
cd -
}
cd ./codecs && {
make
cd -
}
2018-09-10 00:42:26 +02:00
}