summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 87bb2a53c8f999566c9542668bd5d320ba3003ab (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
# Maintainer: GI Jack <GI_Jack@hackermail.com>
# Poached from: ArchStrike <team@archstrike.org>

pkgname=dirble
pkgver=1.4.2
pkgrel=1
arch=('x86_64' 'i686' 'armv6h' 'armv7h' 'aarch64')
pkgdesc="Fast directory scanning and scraping tool"
url="https://github.com/nccgroup/dirble"
license=('GPL3')
makedepends=('cargo')
depends=('curl')
source=("${url}/archive/v${pkgver}.tar.gz")
sha512sums=('ea7e1c3b0af29fb32a42b2860c38bc319d3542b87af97f3c0b3f02d18c6d728b0b19e1578424d9121b4ed99053b0938f3c23e85fb75fd95c570ed6e779aab163')

build() {
  cd ${pkgname}-${pkgver}

  cargo build --release
}

package() {
  cd ${pkgname}-${pkgver}
  install -dm755 "${pkgdir}/usr/bin"
  install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"

  install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 dirble_wordlist.txt "${pkgdir}/usr/share/${pkgname}/dirble_wordlist.txt"
  cp -a --no-preserve=ownership extensions "${pkgdir}/usr/share/${pkgname}/"
  cp -a --no-preserve=ownership schemas "${pkgdir}/usr/share/${pkgname}/"
}