summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d92cef0c861494c46c927178acaf79eb22f6e84d (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=winchecksec
pkgver=3.1.0
pkgrel=3
pkgdesc="Checksec, but for Windows: static detection of security mitigations in executables"
arch=('i686' 'x86_64')
url="https://trailofbits.github.io/winchecksec/"
license=('Apache')
depends=('gcc-libs' 'openssl' 'pe-parse')
makedepends=('cmake' 'uthenticode')
source=("$pkgname-$pkgver-src.tar.gz::https://github.com/trailofbits/winchecksec/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('d110f9d2c762ad5376991d3eb93a696f794787629dc41f8232ec00a087864d22')


build() {
  cd "$pkgname-$pkgver"

  cmake \
    -B "_build" \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    -DCMAKE_INSTALL_LIBDIR="lib" \
    ./
  make -C "_build"
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm755 "_build/winchecksec" -t "$pkgdir/usr/bin"
}