blob: 95a8c3ce9a5522e261b3aa67294a53d45439574e (
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: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=pe-parse
pkgver=2.1.1
pkgrel=3
pkgdesc="Principled, lightweight C/C++ PE parser"
arch=('i686' 'x86_64')
url="https://github.com/trailofbits/pe-parse"
license=('MIT')
depends=('gcc-libs')
makedepends=('cmake')
source=("$pkgname-$pkgver-src.tar.gz::https://github.com/trailofbits/pe-parse/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('74c4012274e6e15128a8cf4453f63bb11155bcc14ad56ca7594a259ae8ae0202')
prepare() {
cd "$pkgname-$pkgver"
sed -i -e 's|-Werror||g' "cmake/compilation_flags.cmake"
}
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"
make -C "_build" DESTDIR="$pkgdir" install
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/pe-parse"
}
|