summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ce9ecad84733faf13f2872933b9ac2b7a31e618 (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
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Maintainer: Daniel Maslowski <info@orangecms.org>

_pyname=graphqlmap
pkgname=graphqlmap-git
pkgver=r63.59305d7
pkgrel=1
pkgdesc="scripting engine to interact with a GraphQL endpoint for pentesting purposes"
arch=('any')
url="https://github.com/swisskyrepo/GraphQLmap"
license=('MIT')
depends=(
  'python'
  'python-requests'
  'python-rl'
)
makedepends=(
  'git'
  'python-setuptools'
)
provides=("$_pyname")
conflicts=(graphqlmap)
options=(!emptydirs)
source=(
	git+https://github.com/swisskyrepo/$_pyname.git
)
sha512sums=('SKIP')

pkgver() {
  cd "$_pyname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$_pyname"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm 644 LICENSE $pkgdir/usr/share/licenses/${pkgname}/LICENSE
}

# vim:set ts=2 sw=2 et: