blob: 24a41ff4decf4759764aa413481b9925a5cfa5dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: mcgyver <newsletter.sergio@gmail.com>
pkgname=pcapplusplus-git
pkgver=22.11.r104.gfb3a5604
pkgrel=1
pkgdesc="A multi-platform C++ library for capturing, parsing and crafting of network packets"
arch=("x86_64")
url="https://pcapplusplus.github.io/"
license=('Unlicense')
makedepends=("git")
depends=("libpcap" "glibc" "gcc-libs")
source=("pcapplusplus::git+https://github.com/seladb/PcapPlusPlus.git")
sha256sums=('SKIP')
pkgver() {
cd "pcapplusplus"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/\./g'
}
build() {
cd "pcapplusplus"
mkdir -p "build"
cd build
cmake -DCMAKE_INSTALL_PREFIX='/usr' ..
make
}
package() {
cd "$srcdir/pcapplusplus/build"
make DESTDIR="$pkgdir" install
}
#package() {
# cd "pcapplusplus/Dist" || exit 1
# mkdir -p "$pkgdir/usr/bin"
# cp examples/* "$pkgdir/usr/bin"
# mkdir -p "$pkgdir/usr/include/pcapplusplus"
# cp header/* "$pkgdir/usr/include/pcapplusplus"
# mkdir -p "$pkgdir/usr/lib/pcapplusplus"
# cp ./*.a "$pkgdir/usr/lib/pcapplusplus"
#}
|