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/47L1jDHb/O8E5Y1Ec2qVjP
|
||||
qLaLZ7u/3OzqiHS1rvw7ybAE1LY0g6FBL+O/WpudwT5lavuCNNSRmHYOkVMpDtFN
|
||||
VX1cvazyxpk1dE0Dd3kuEqXEQA4JnCXXLDaDSVa3OdjGV1XTuZB+z1n7gk3u/Lj1
|
||||
bCJGqfv68DC4nt+TFI/LkTlr7Uyh9Yt14QqIxfwiMrRmjVdGN8eIPx/MCQ5dhepr
|
||||
dXQ7qnnszCvgzhEIHwF/nJadaagJpeKhz2/svRol/xGQCsWF8qS4Yd4KU2cdibVG
|
||||
u4oBppdY5GqZt+9WUleqfjFX6yrF35iulIkeiAPhjJIsHu1npXhWJAZXx3H8DJzJ
|
||||
ePmZYY/Vj+NFMOT7kSqrjXIZ70MhxMtHgI/tEtu3R7ERiBXgaSNEBLeDSMGtvkvF
|
||||
JhIbyF0KvbPZLDqOPWcel8pQy2ng9fyAzRWoIx9JcZF8bBKPS7fGQSn3hfAvAJxE
|
||||
cae7gFpAsaQp1jygov1QUntUtb8CnN58nC7THS+i2STWGB3A+MIYULH+tTsm730+
|
||||
JsfyVQ/VO5Xktbxk4oMOlUqawq8GP7EC6WYVaE7ffvlrcyHIcqX7XlJP5lZZaSw8
|
||||
TElUSCco+zithDTQUzt4+e/Z0kU/rfpYase/4KezPlvEoQfL8PeL0xq0MnG83u64
|
||||
h02sXJ26h2af5bM05JD8Jg==
|
||||
=LwAB
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
@ -1,17 +1,17 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJNBAABCgA3FiEEm8dazQnvu0U1Gdmc9s+lqZ57WVcFAmCXEdIZHGd6YW11ZGlv
|
||||
QGxpYnJlbWV4Lm9yZy5teAAKCRD2z6WpnntZV3+WEAClArVHvSRyb9fdbtRHFCBO
|
||||
9GDtN5fsBMlmxoTvMqR6Yfc/IFoURL+8WIxUCfQ8jZ31fgkhR62migFqeml3yNGp
|
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yI7uM
|
||||
UW4jnklcuvJm9+0ipNSL1W72TvbEBzZaQPj04x7G7Y9IwOw03xUYTCSDwFbXbQQ/
|
||||
kFaJ+nmm1fPvgTP4fP2wy5Rx0qt4VSx9T7Z+yzYuy1afy19b2AN+24GbLrR0wM/J
|
||||
xKzyxVupZEfmv92nEZkb+D2SXLc/9nIkEPf9f5yzAg+CJsRMPAhEy8U2RNOlCrC3
|
||||
nVw5vStB4LqyM7EdE5dnwDbK1Dc7OZo9qobKCRWgcI89vB2avSVcT/RMgAEcKZC2
|
||||
lohIMaqEpn38Qcm95212c9M6XdyX+UyZZIkBXqHNYyE7K0LAYoe0R2lhs6ZSWjKJ
|
||||
KcTJ05X1c8bH2hDNHV+TRAy8YWpKaDAETv302Ehlyzac+rn8gnTAmxr9g8pZLlS1
|
||||
T5znRrWEZgw25vNxtrEuIg==
|
||||
=VxUA
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
capstone: capstone (disassembly framework)
|
||||
capstone:
|
||||
capstone: Capstone is a lightweight multi-platform, multi-architecture
|
||||
capstone: disassembly framework.
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
@ -0,0 +1,19 @@
|
||||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
capstone: capstone (disassembly framework)
|
||||
capstone:
|
||||
capstone: Capstone is a lightweight multi-platform, multi-architecture
|
||||
capstone: disassembly framework.
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
@ -0,0 +1,7 @@
|
||||
Capstone is a lightweight multi-platform, multi-architecture disassembly
|
||||
framework.
|
||||
|
||||
Multi-architectures: Arm, Arm64 (Armv8), M68K, Mips, PowerPC, Sparc,
|
||||
SystemZ, XCore & X86 (including X86_64).
|
||||
|
||||
Distributed under the open source BSD license.
|
@ -0,0 +1,118 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Slackware build script for capstone
|
||||
|
||||
# Copyright 2016 Fernando Lopez Jr. <fernando.lopezjr@gmail.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
# permitted provided that the following conditions are met:
|
||||
#
|
||||
# 1. Redistributions of this script must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=capstone
|
||||
VERSION=${VERSION:-4.0.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $TMP/$PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake \
|
||||
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DLIB_SUFFIX="$LIBDIRSUFFIX" \
|
||||
-DCAPSTONE_ARM_SUPPORT=1 \
|
||||
-DCAPSTONE_ARM64_SUPPORT=1 \
|
||||
-DCAPSTONE_M68K_SUPPORT=1 \
|
||||
-DCAPSTONE_MIPS_SUPPORT=1 \
|
||||
-DCAPSTONE_PPC_SUPPORT=1 \
|
||||
-DCAPSTONE_SPARC_SUPPORT=1 \
|
||||
-DCAPSTONE_SYSZ_SUPPORT=1 \
|
||||
-DCAPSTONE_TMS320C64X_SUPPORT=1 \
|
||||
-DCAPSTONE_X86_SUPPORT=1 \
|
||||
-DCAPSTONE_X86_ATT_DISABLE=1 \
|
||||
-DCAPSTONE_XCORE_SUPPORT=1 \
|
||||
-DCAPSTONE_BUILD_STATIC=0 \
|
||||
-DCMAKE_BUILD_TYPE=Release ..
|
||||
make VERBOSE=1
|
||||
make install DESTDIR=$PKG
|
||||
cd ..
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
# pkg-config (PKG_CONFIG_PATH environment variable)
|
||||
# to generate .pc file do: $ python setup.py build
|
||||
# inside bindings/python
|
||||
mkdir -p $PKG/usr/share/pkgconfig
|
||||
sed -e "s|@CMAKE_INSTALL_PREFIX@|/usr|" \
|
||||
-e "s|@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@|$VERSION|" \
|
||||
-e "s|@LIBSUFFIX@|$LIBDIRSUFFIX|" \
|
||||
< capstone.pc.in \
|
||||
> $PKG/usr/share/pkgconfig/capstone.pc
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COMPILE* CREDITS.TXT ChangeLog HACK.TXT LICENSE* README.md RELEASE_NOTES SPONSORS.TXT TODO $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
@ -0,0 +1,10 @@
|
||||
PRGNAM="capstone"
|
||||
VERSION="4.0.1"
|
||||
HOMEPAGE="http://www.capstone-engine.org"
|
||||
DOWNLOAD="https://github.com/aquynh/capstone/archive/4.0.1/capstone-4.0.1.tar.gz"
|
||||
MD5SUM="1b0a9a0d50d9515dcf7684ce0a2270a4"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Fernando Lopez Jr."
|
||||
EMAIL="fernando.lopezjr@gmail.com"
|
@ -0,0 +1,8 @@
|
||||
Name: capstone
|
||||
Description: Capstone disassembly engine
|
||||
Version: %VERSION%
|
||||
libdir=/usr/lib%LIBDIRSUFFIX%
|
||||
includedir=/usr/include
|
||||
archive=${libdir}/libcapstone.a
|
||||
Libs: -L${libdir} -lcapstone
|
||||
Cflags: -I${includedir}
|
@ -0,0 +1,19 @@
|
||||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description.
|
||||
# Line up the first '|' above the ':' following the base package name, and
|
||||
# the '|' on the right side marks the last column you can put a character in.
|
||||
# You must make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
capstone: capstone (disassembly framework)
|
||||
capstone:
|
||||
capstone: Capstone is a lightweight multi-platform, multi-architecture
|
||||
capstone: disassembly framework.
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
||||
capstone:
|
Loading…
Reference in new issue