summaryrefslogtreecommitdiff
path: root/development/scite/scite.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2022-02-26 12:12:40 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-27 01:09:56 +0700
commit844068b35258e025e9eab9a27cbce2abeb0a9b63 (patch)
tree03f4c0d2b1805f9074327bd4a86c11e3c1807402 /development/scite/scite.SlackBuild
parentb51acdb58da23ff0a469fe3746cf4a6afc5442d4 (diff)
downloadslackbuilds-844068b35258e025e9eab9a27cbce2abeb0a9b63.tar.gz
development/scite: Updated for version 5.2.1.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/scite/scite.SlackBuild')
-rw-r--r--development/scite/scite.SlackBuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/development/scite/scite.SlackBuild b/development/scite/scite.SlackBuild
index b8c79bdd24..60c1cedc93 100644
--- a/development/scite/scite.SlackBuild
+++ b/development/scite/scite.SlackBuild
@@ -29,7 +29,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=scite
-VERSION=${VERSION:-3.7.4}
+VERSION=${VERSION:-5.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -71,19 +71,23 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf scite/ scintilla/
+rm -rf lexilla/ scite/ scintilla/
tar xvf $CWD/${PRGNAM}$(echo $VERSION | tr -d .).tgz
-chown -R root:root scite/ scintilla/
-chmod -R u+w,go+r-w,a-s scite/ scintilla/
+chown -R root:root lexilla/ scite/ scintilla/
+chmod -R u+w,go+r-w,a-s lexilla/ scite/ scintilla/
+
+cd $TMP/lexilla
+make -C src
cd $TMP/scintilla
-make -C gtk prefix=/usr
+make -C gtk prefix=/usr GTK3=1
cd $TMP/scite
sed -i "s%xdg-open%$HELPBROWSER%g" src/Embedded.properties
sed -i "s%xdg-open%$HELPBROWSER%g" src/SciTEGlobal.properties
-make -C gtk prefix=/usr
-make -C gtk install DESTDIR=$PKG
+sed -i "s%/lib/scite%/lib$LIBDIRSUFFIX/scite%" gtk/makefile
+make -C gtk prefix=/usr GTK3=1
+make -C gtk install GTK3=1 DESTDIR=$PKG
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