capstone: Fix _devel package, switch to cmake

This commit is contained in:
Alexander von Gluck IV
2020-03-16 09:19:56 -05:00
parent 4a6cc60b2d
commit 4978f922c5

View File

@@ -16,7 +16,7 @@ various X86 malware tricks)."
HOMEPAGE="http://www.capstone-engine.org"
COPYRIGHT="2013-2019, COSEINC"
LICENSE="BSD (3-clause)"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/aquynh/capstone/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="79bbea8dbe466bd7d051e037db5961fdb34f67c9fac5c3471dd105cfb1e05dc7"
srcGitRev="b01a30bf595c23081d0acfbcbe36fc8c6d829a71"
@@ -51,6 +51,7 @@ BUILD_REQUIRES="
BUILD_PREREQUIRES="
cmd:awk
cmd:find
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
@@ -64,7 +65,10 @@ BUILD()
export INCDIR=$includeDir
export LIBDIRARCH=$relativeLibDir
export MAKE_JOBS=$jobArgs
./make.sh default
rm -rf build
mkdir build; cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$prefix
make
}
INSTALL()
@@ -72,7 +76,8 @@ INSTALL()
export INCDIR=$includeDir
export PREFIX=$prefix
export LIBDIRARCH=$relativeLibDir
./make.sh install
cd build
make install
prepareInstalledDevelLib libcapstone
fixPkgconfig
packageEntries devel $developDir
@@ -80,6 +85,8 @@ INSTALL()
TEST()
{
cd build
export filename="corpus-libFuzzer-capstone_fuzz_disasmnext-latest"
if [ -d "./suite/fuzz/$filename" ]; then