summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2365da0671091c487827bbd8c58388f87018968d (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
44
45
46
# vim:ts=2:sw=2:expandtab
# Maintainer: peelz <peelz.dev+arch@gmail.com>

_commit="7f3c13649959747ec57db172da355038c3521e1e"
pkgname=readpe
pkgver=0.83
pkgrel=2
pkgdesc="PE file analysis toolkit"
arch=("x86_64")
url="https://github.com/mentebinaria/readpe"
license=("GPL" "custom:OpenSSL")
conflicts=("pev")
depends=("openssl")
makedepends=("git")
source=(
  "readpe::git+https://github.com/mentebinaria/readpe.git#commit=$_commit"
  "fix-install-prefix.diff"
)
sha256sums=(
  "SKIP"
  "SKIP"
)

prepare() {
  cd readpe
  git apply < "$srcdir/fix-install-prefix.diff"
}

build() {
  cd readpe
  make all
}

package() {
  (
    cd readpe/src
    make DESTDIR="$pkgdir/" install
  )
  (
    cd readpe/lib/libpe
    make DESTDIR="$pkgdir/" install
  )
  install -Dm644 \
    -t "$pkgdir/usr/share/licenses/$pkgname/" \
    "$srcdir/readpe/LICENSE.OpenSSL"
}