void-packages/srcpkgs/rdis-git/template
Juergen Buchmueller 3a3a81863d rdis-git: fix PIE
See #4572
2016-09-04 01:06:32 +02:00

25 lines
695 B
Bash

# Template file for 'rdis-git'
pkgname=rdis-git
version=20150722
revision=4
hostmakedepends="pkg-config git"
makedepends="libressl-devel gtk+3-devel jansson-devel LuaJIT-devel udis86-devel"
short_desc="A binary analysis tool for Linux"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="https://github.com/endeav0r/rdis"
do_fetch() {
git clone git://github.com/endeav0r/rdis.git $wrksrc
cd $wrksrc
git reset --hard 1370ca0f737a790e3ca7d7d9513543d7ea52c3a4
}
do_build() {
sed -i src/Makefile src/*/Makefile \
-e "s;^\(CCFLAGS=\)\(.*\);\1${CFLAGS} \2;" \
-e 's;$(LIB) $(CCFLAGS);$(LIB) $(LDFLAGS) $(CCFLAGS);'
make CC=$CC ${makejobs}
}
do_install() {
vbin src/rdis
}