diff options
author | Chocobo1 | 2023-01-14 14:29:00 +0800 |
---|---|---|
committer | Chocobo1 | 2023-01-14 14:30:16 +0800 |
commit | b8f6850b1ad9017d44b7d370d3cfa4d36b7b69f3 (patch) | |
tree | 9ea42076746fb6d56acfe3b169c20352e1b8b36d | |
download | aur-b8f6850b1ad9017d44b7d370d3cfa4d36b7b69f3.tar.gz |
newpkg: pe-parse 2.1.1-1
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b33d9a93e385 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = pe-parse + pkgdesc = Principled, lightweight C/C++ PE parser + pkgver = 2.1.1 + pkgrel = 1 + url = https://github.com/trailofbits/pe-parse + arch = i686 + arch = x86_64 + license = MIT + makedepends = cmake + depends = gcc-libs + options = staticlibs + source = pe-parse-2.1.1-src.tar.gz::https://github.com/trailofbits/pe-parse/archive/refs/tags/v2.1.1.tar.gz + sha256sums = 74c4012274e6e15128a8cf4453f63bb11155bcc14ad56ca7594a259ae8ae0202 + +pkgname = pe-parse diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7cba0ab7530a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=pe-parse +pkgver=2.1.1 +pkgrel=1 +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') +options=('staticlibs') +source=("$pkgname-$pkgver-src.tar.gz::https://github.com/trailofbits/pe-parse/archive/refs/tags/v2.1.1.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" +} |