summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2aae8b9ce8bd9ad80ff098a2d23f2e3cd225e910 (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
# Maintainer: Gray <apoco@pm.me>
pkgname=dartbuster
pkgver=1.0.2
pkgrel=1
pkgdesc="URL Fuzzing / brute forcing tool, written in dart."
arch=('any')
url="https://github.com/GrayWasTaken/dartbuster"
license=('MIT')
makedepends=('git' 'dart')
changelog=
source=("git+$url")
md5sums=('SKIP') #autofill using updpkgsums
OPTIONS=(!strip !docs !libtool !staticlibs emptydirs zipman purge !debug)

build() {
  cd "$pkgname"
  pub get
  dart2native "bin/dartbuster.dart" -o "bin/dartbuster"
  rm bin/dartbuster.dart
}

package() {
  cd $pkgname
  mkdir -p "$pkgdir/opt/"
  mkdir -p "$pkgdir/usr/bin/"
  cp -R "${srcdir}"/"${pkgname}" "${pkgdir}"/opt
  printf '#!/bin/sh\nexec /opt/dartbuster/bin/dartbuster $@' > "${pkgdir}/usr/bin/${pkgname}"
  chmod 755 "${pkgdir}/usr/bin/${pkgname}"
}