aboutsummaryrefslogtreecommitdiff
path: root/system/capstone/capstone.SlackBuild
diff options
context:
space:
mode:
authorFernando Lopez Jr <fernando.lopezjr@gmail.com>2019-11-16 20:18:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-16 20:18:31 +0700
commit6c0e326119f939dabccc569bf0cf51724e49265b (patch)
tree11514e2d1fc536e5aa1504e82d86a1402e382123 /system/capstone/capstone.SlackBuild
parentaed70c69dba08ed8c79df26b5c881d5cfb2039ec (diff)
system/capstone: Updated for version 4.0.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/capstone/capstone.SlackBuild')
-rw-r--r--system/capstone/capstone.SlackBuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/system/capstone/capstone.SlackBuild b/system/capstone/capstone.SlackBuild
index fe645c81efb5a..27aeb32b934f5 100644
--- a/system/capstone/capstone.SlackBuild
+++ b/system/capstone/capstone.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=capstone
-VERSION=${VERSION:-3.0.5}
+VERSION=${VERSION:-4.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -101,12 +101,14 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# to generate .pc file do: $ python setup.py build
# inside bindings/python
mkdir -p $PKG/usr/share/pkgconfig
-sed -e "s|%VERSION%|$VERSION|" -e "s|%LIBDIRSUFFIX%|$LIBDIRSUFFIX|" \
- < $CWD/capstone.pc.in \
+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* LICENSE* README TODO RELEASE_NOTES HACK.TXT ChangeLog $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