Skip to content

Commit

Permalink
packages: Add wtfbbqhax/libpacket version 0.2.2
Browse files Browse the repository at this point in the history
packages/libpacket/APKBUILD:

 * Add APKBUILD for wtfbbqhax/libpacket

Containerfile:

 * Add build step for libpacket
  • Loading branch information
Victor Roemer authored and wtfbbqhax committed Sep 3, 2024
1 parent 541ff47 commit 75e19e6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions packages/libpacket/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Contributor: Victor Roemer <[email protected]>
# Maintainer: Victor Roemer <[email protected]>
pkgname=libpacket
pkgver=0.2.2
pkgrel=0
pkgdesc="Packet parser library that provides a clean API to aide in the creation of packet sniffers."
url="https://github.com/wtfbbqhax/LibPacket"
arch="all"
license="BSD"
options='!fhs !check'
giturl="https://github.com/wtfbbqhax/LibPacket.git"
builddir="$srcdir/libpacket"
depends=""
makedepends="git cmake ninja"
subpackages="$pkgname-dev"

prepare() {
mkdir -p "$builddir"
git clone --depth 1 --branch master $giturl "$builddir"
}

build() {
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build build
}

package() {
DESTDIR="$pkgdir" cmake --install build
}

dev() {
default_dev
}

0 comments on commit 75e19e6

Please sign in to comment.