blob: eb3332573cab9bb3a3d7dccdae90a04f44bb9b0d (
plain)
1 # Description: Network Sniffer
2 # URL: https://www.wireshark.org
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: c-ares hicolor-icon-theme libgcrypt libpcap qt5
5
6 name=wireshark
7 version=3.4.9
8 release=1
9 source=(https://www.wireshark.org/download/src/$name-$version.tar.xz)
10
11 build() {
12 cmake -S $name-$version -B build -G Ninja \
13 -D CMAKE_BUILD_TYPE=Release \
14 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
15 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
16 -D CMAKE_INSTALL_PREFIX=/usr \
17 -D CMAKE_INSTALL_LIBDIR=lib
18
19 cmake --build build
20 DESTDIR=$PKG cmake --install build
21
22 # Don't remove these files, they are read by wireshark's about box.
23 #rm -f $PKG/usr/share/$name/{AUTHORS-SHORT,COPYING}
24
25 rm -r $PKG/usr/share/doc
26 }
|