summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b752bcc36c7e2fc3524fbb0ece1d5a25fada1831 (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
# Maintainer: lefrade <lefrade@protonmail.com>

_pkgname=kadimus
pkgname="$_pkgname-git"
pkgver=1.5.r7.gac5f438
pkgrel=1
pkgdesc='A tool to check and exploit lfi vulnerability'
arch=('i686' 'x86_64')
url='https://github.com/P0cL4bs/kadimus'
license=('MIT')
depends=('curl' 'pcre' 'libssh')
makedepends=('git')
conflicts=("$_pkgname")
provides=("$_pkgname")
source=('git+https://github.com/P0cL4bs/kadimus.git')
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed -r 's/^v//g;s/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd "$_pkgname"
  sed -i "s/\.\/resource/\/usr\/share\/$pkgname/g" src/scan/scan.c
}

build() {
  cd "$_pkgname"
	make
}

package() {
  cd "$_pkgname"
  install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
  install -Dm644 'license.txt' "$pkgdir/usr/share/licenses/$pkgname/license.txt"
  install -Dm644 'resource/common_files.txt' "$pkgdir/usr/share/$pkgname/common_files.txt"
  install -Dm644 'resource/errors.txt' "$pkgdir/usr/share/$pkgname/errors.txt"
}