opt/wireshark/Pkgfile

27 lines
746 B
Plaintext
Raw Normal View History

2019-05-19 22:26:47 +02:00
# Description: Network Sniffer
2021-01-29 13:48:31 +01:00
# URL: https://www.wireshark.org
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: c-ares hicolor-icon-theme libgcrypt libpcap qt5
name=wireshark
2021-01-30 13:09:55 +01:00
version=3.4.3
2014-11-23 22:59:19 +01:00
release=1
2020-05-24 14:53:43 +02:00
source=(https://www.wireshark.org/download/src/$name-$version.tar.xz)
build() {
2021-01-30 13:09:55 +01:00
cmake -S $name-$version -B build -G Ninja \
-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
2020-05-24 14:53:43 +02:00
cmake --build build
2020-07-08 15:14:57 +02:00
DESTDIR=$PKG cmake --install build
# 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
rm -r $PKG/usr/share/doc
}