capstone: update to 4.0.

This commit is contained in:
Johannes 2019-01-05 02:29:49 +01:00 committed by Johannes
parent 7375bf282a
commit 3ab8843220
3 changed files with 41 additions and 7 deletions

View File

@ -1915,7 +1915,7 @@ liboping.so.0 liboping-1.8.0_1
libgksu2.so.0 libgksu-2.0.12_1
libloudmouth-1.so.0 loudmouth-1.4.3_1
libtorrent-rasterbar.so.9 libtorrent-rasterbar-1.1.1_1
libcapstone.so.3 capstone-3.0_1
libcapstone.so.4 capstone-4.0_1
libhavege.so.1 libhaveged-1.9.1_1
libnih.so.1 libnih-1.0.3_1
libnih-dbus.so.1 libnih-1.0.3_1

View File

@ -0,0 +1,36 @@
--- Makefile 2018-12-18 17:31:46.000000000 +0100
+++ Makefile 2019-01-05 02:15:19.102526211 +0100
@@ -402,23 +402,23 @@
endif
install: $(PKGCFGF) $(ARCHIVE) $(LIBRARY)
- mkdir -p $(DESTDIR)$(LIBDIR)
- $(call install-library,$(DESTDIR)$(LIBDIR))
+ mkdir -p $(LIBDIR)
+ $(call install-library,$(LIBDIR))
ifeq ($(CAPSTONE_STATIC),yes)
- $(INSTALL_DATA) $(ARCHIVE) $(DESTDIR)$(LIBDIR)
+ $(INSTALL_DATA) $(ARCHIVE) $(LIBDIR)
endif
mkdir -p $(DESTDIR)$(INCDIR)/$(LIBNAME)
$(INSTALL_DATA) include/capstone/*.h $(DESTDIR)$(INCDIR)/$(LIBNAME)
- mkdir -p $(DESTDIR)$(PKGCFGDIR)
- $(INSTALL_DATA) $(PKGCFGF) $(DESTDIR)$(PKGCFGDIR)
- mkdir -p $(DESTDIR)$(BINDIR)
- $(INSTALL_LIB) cstool/cstool $(DESTDIR)$(BINDIR)
+ mkdir -p $(PKGCFGDIR)
+ $(INSTALL_DATA) $(PKGCFGF) $(PKGCFGDIR)
+ mkdir -p $(BINDIR)
+ $(INSTALL_LIB) cstool/cstool $(BINDIR)
uninstall:
rm -rf $(DESTDIR)$(INCDIR)/$(LIBNAME)
- rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).*
- rm -f $(DESTDIR)$(PKGCFGDIR)/$(LIBNAME).pc
- rm -f $(DESTDIR)$(BINDIR)/cstool
+ rm -f $(LIBDIR)/lib$(LIBNAME).*
+ rm -f $(PKGCFGDIR)/$(LIBNAME).pc
+ rm -f $(BINDIR)/cstool
clean:
rm -f $(LIBOBJ)

View File

@ -1,18 +1,16 @@
# Template file for 'capstone'
pkgname=capstone
version=3.0.5
version=4.0
revision=1
build_style=gnu-makefile
make_use_env=1
hostmakedepends="python-setuptools python3-setuptools"
short_desc="Lightweight multi-platform, multi-architecture disassembly framework"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD-2-Clause"
homepage="http://www.capstone-engine.org/"
distfiles="https://github.com/aquynh/${pkgname}/archive/${version}.tar.gz"
checksum=913dd695e7c5a2b972a6f427cb31f2e93677ec1c38f39dda37d18a91c70b6df1
do_build() {
make V=1 CC=$CC ${makejobs}
}
checksum=26c6461618670d59215635602ef5fb6f90bf6724006983af88e4983d6af1e67a
do_install() {
make PREFIX=/usr DESTDIR=${DESTDIR} install