blob: 4f2d4b09027e31e9af8d6f49d2eb8954a00f902d (
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
|
#Maintainer: Mikhail Rudenko <mike.rudenko@gmail.com>
_pkgname=peldd
pkgname=$_pkgname-git
pkgver=r20.2af684a
pkgrel=1
pkgdesc='A tool for listing shared object dependencies of a portable executable (PE)'
arch=('x86_64')
url="https://github.com/gsauthof/pe-util"
license=('MIT')
depends=('boost')
makedepends=('cmake' 'git')
source=("$_pkgname::git+https://github.com/gsauthof/pe-util"
"git+https://github.com/trailofbits/pe-parse"
"0001-Fix-search-paths-for-Arch.patch")
md5sums=('SKIP'
'SKIP'
'892f4cbac38d0c9edcb6342f260a6002')
provides=($_pkgname)
conflicts=($_pkgname)
prepare() {
cd $_pkgname
git submodule init
git config submodule.pe-parse.url $srcdir/pe-parse
git -c protocol.file.allow=always submodule update
patch -p1 -i $srcdir/0001-Fix-search-paths-for-Arch.patch
}
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
mkdir -p build
cd build
cmake ../$_pkgname -DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd build
install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
}
|