summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f2b0ab212981c27733ae762a23fede6e1b0f86c (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
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Eduard Tolosa <edu4rdshl@protonmail.com>

pkgname=findomain-git
_pkgname=findomain
pkgver=826.8f00eac
pkgrel=1
pkgdesc='The fastest and cross-platform subdomain enumerator, do not waste your time.'
arch=('any')
url='https://github.com/Edu4rdSHL/findomain'
license=('GPL3')
optdepends=('postgresql: for subdomains monitoring.')
depends=('gcc-libs')
makedepends=('git' 'cargo')
source=("git+https://github.com/Edu4rdSHL/$_pkgname.git")
sha512sums=('SKIP')
options=(!lto)

pkgver() {
  cd $_pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

check() {
  cd ${_pkgname}-${pkgver}

  cargo test --release --locked
}

build() {
  cd $_pkgname

  cargo build --release --locked
}

package() {
  cd $_pkgname

  install -Dm 755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 -t "$pkgdir/usr/share/man/man1/" $_pkgname.1
}