#Packager: Dimitris Tzemos pkgname=wireshark pkgver=2.6.1 pkgrel=1dj source=(https://www.wireshark.org/download/src/${pkgname}-${pkgver}.tar.xz do_not_use_svn_version.patch) docs=("AUTHORS*" "COPYING" "ChangeLog" "INSTALL*" "NEWS" "README*" "doc/READM*") url=https://www.wireshark.org/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "wireshark (packet sniffer and protocol analyzer)" "Wireshark (aka Ethereal) is a free packet sniffer computer" "application. It is used for network troubleshooting, analysis," "software and communications, protocol development and education." "Wireshark uses the cross-platform GTK+/Qt widget toolkit. Its" "powerful features make it the tool of choice for network" "troubleshooting, protocol development, and education worldwide." ) build() { cd $startdir/src/$pkgname-$pkgver # Ammend hardcoded paths to /usr/lib/ which will give a problem when compiling on # systems with 32bit compat libs install. Thanks to Heinz Wiesinger. sed -i "s|/lib)|/lib$LIBDIRSUFFIX)|g" configure.ac || return 1 # Avoid ugly "svn rev unknown from unknown" version string patch -p1 < "${SRC}/do_not_use_svn_version.patch" || return 1 ./autogen.sh ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --with-ssl=/usr/lib${LIBDIRSUFFIX} \ --enable-packet-editor \ --enable-setuid-install \ --with-gtk=3 \ --with-qt=5 \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg || return 1 mkdir -p $PKG/usr/include/$pkgname/{epan/{crypt,dfilter,dissectors,ftypes,wmem},wiretap,wsutil} install -m644 config.h ws_diag_control.h ws_symbol_export.h $PKG/usr/include/$pkgname for d in epan epan/crypt epan/dfilter epan/dissectors epan/ftypes epan/wmem wiretap wsutil; do install -m644 $d/*.h $PKG/usr/include/$pkgname/$d done mkdir -p $PKG/usr/share/applications || return 1 cp $pkgname.desktop $PKG/usr/share/applications || return 1 # Remove any .la files rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la || return 1 }