2019-05-19 22:26:47 +02:00
|
|
|
# Description: Network Sniffer
|
2021-01-29 12:48:31 +00:00
|
|
|
# URL: https://www.wireshark.org
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: c-ares hicolor-icon-theme libgcrypt libpcap qt5
|
2006-09-25 18:20:26 +00:00
|
|
|
|
|
|
|
name=wireshark
|
2022-02-12 10:59:37 +01:00
|
|
|
version=3.6.2
|
2014-11-23 22:59:19 +01:00
|
|
|
release=1
|
2020-05-24 22:53:43 +10:00
|
|
|
source=(https://www.wireshark.org/download/src/$name-$version.tar.xz)
|
2006-09-25 18:20:26 +00:00
|
|
|
|
|
|
|
build() {
|
2021-01-30 12:09:55 +00:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
2020-12-15 15:23:03 +01:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib
|
2006-09-25 18:20:26 +00:00
|
|
|
|
2020-05-24 22:53:43 +10:00
|
|
|
cmake --build build
|
2020-07-08 23:14:57 +10:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2006-09-25 18:20:26 +00:00
|
|
|
|
2014-11-13 22:00:51 +01:00
|
|
|
# Don't remove these files, they are read by wireshark's about box.
|
|
|
|
#rm -f $PKG/usr/share/$name/{AUTHORS-SHORT,COPYING}
|
2019-05-19 22:26:47 +02:00
|
|
|
|
2021-11-23 07:54:34 +01:00
|
|
|
#rm -r $PKG/usr/share/doc
|
2006-09-25 18:20:26 +00:00
|
|
|
}
|