void-packages/srcpkgs/rdis-git/template
Gonzalo Tornaría 1d096e987e srcpkgs/: Switch templates from git:// to https://
As of today github no longer accepts `git://` so we switch templates
that use git clone from `git://github.com/` to `https://github.com`.
2022-01-11 18:17:35 +01:00

25 lines
707 B
Bash

# Template file for 'rdis-git'
pkgname=rdis-git
version=20150722
revision=13
hostmakedepends="pkg-config git"
makedepends="openssl-devel gtk+3-devel jansson-devel LuaJIT-devel udis86-devel"
short_desc="Binary analysis tool for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://github.com/endeav0r/rdis"
do_fetch() {
git clone https://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
}