-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packages: Add wtfbbqhax/libpacket version 0.2.2
packages/libpacket/APKBUILD: * Add APKBUILD for wtfbbqhax/libpacket Containerfile: * Add build step for libpacket
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |