summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6e8c9b79ab08e7eb54c26e1805b3ed9909ebabb (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
# Maintainer: Bet4 <0xbet4@gmail.com>

_pkgname=ropium
pkgname=${_pkgname}-git
pkgver=3.2.r0.ge710087
pkgrel=1
pkgdesc='A tool to makes ROP-exploits easy'
arch=(x86_64)
url='https://github.com/Boyan-MILANOV/ropium'
depends=(python capstone ropgadget python-prompt_toolkit)
makedepends=(git)
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

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

build() {
  cd $pkgname
  make
}

check() {
  cd $pkgname
  make test
}

package() {
  cd $pkgname
  _pythonpath=`python -c "from sysconfig import get_path; print(get_path('platlib'))"`
  make DESTDIR="$pkgdir" PYTHONDIR="$pkgdir"/$_pythonpath  install
}