Skip to content

Commit

Permalink
sharpfuzz: add package (#4383)
Browse files Browse the repository at this point in the history
* sharpfuzz: add package

* Update to-release
  • Loading branch information
D3vil0p3r authored Nov 30, 2024
1 parent 55a00cb commit 09a5f5d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sharpfuzz
39 changes: 39 additions & 0 deletions packages/sharpfuzz/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sharpfuzz
pkgver=v2.1.1.r9.g03a381c
pkgrel=1
epoch=1
pkgdesc='AFL-based fuzz testing for .NET.'
arch=('x86_64' 'aarch64')
groups=('blackarch' 'blackarch-fuzzer')
url='https://github.com/Metalnem/sharpfuzz'
license=('MIT')
depends=('afl++' 'dotnet-runtime')
makedepends=('git' 'dotnet-sdk')
source=("git+https://github.com/Metalnem/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
cd $pkgname

( set -o pipefail
git describe --long --tags --abbrev=7 2>/dev/null |
sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "%s.%s" "$(git rev-list --count HEAD)" \
"$(git rev-parse --short=7 HEAD)"
)
}

package() {
cd $pkgname

install -dm 755 "$pkgdir/usr/share/$pkgname"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" docs/*.md *.md

install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

dotnet tool install --tool-path "$pkgdir/usr/bin" SharpFuzz.CommandLine
}

0 comments on commit 09a5f5d

Please sign in to comment.