summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9dae8fa366ae550fc799f16d1d3a8397717aae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgname=wireshark-zmtp-dissector-git
pkgdesc='A Wireshark dissector for the ZeroMQ transfer protocol'
url='https://github.com/whitequark/zmtp-wireshark'
arch=('any')
pkgver=29.bcc9d3d
pkgrel=2
license=('MIT')
depends=('wireshark-cli')
makedepends=('git')
source=('zmtp-wireshark::git+https://github.com/whitequark/zmtp-wireshark.git#branch=master')
md5sums=('SKIP')

pkgver() {
	cd $srcdir/zmtp-wireshark
	echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

package() {
	dir=$pkgdir/usr/lib/wireshark/plugins
	mkdir -p $dir
	cp $srcdir/zmtp-wireshark/zmtp-dissector.lua $dir/
}