diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2016-08-19 15:01:53 +0300 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-08-20 07:51:15 +0700 |
commit | 5546d36a934ec89816d0ca3fc45da00f77c26a40 (patch) | |
tree | 10266900daf93a89627b66ebd3d34228e95a8653 /development/OpenCobolIDE/OpenCobolIDE.SlackBuild | |
parent | b26ca3ce3769a3d69dca3947683753116d69b169 (diff) | |
download | slackbuilds-5546d36a934ec89816d0ca3fc45da00f77c26a40.tar.gz |
development/OpenCobolIDE: Updated for version 4.7.4.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'development/OpenCobolIDE/OpenCobolIDE.SlackBuild')
-rw-r--r-- | development/OpenCobolIDE/OpenCobolIDE.SlackBuild | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/development/OpenCobolIDE/OpenCobolIDE.SlackBuild b/development/OpenCobolIDE/OpenCobolIDE.SlackBuild index 06a1698563..3621472b89 100644 --- a/development/OpenCobolIDE/OpenCobolIDE.SlackBuild +++ b/development/OpenCobolIDE/OpenCobolIDE.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for OpenCobolIDE -# Copyright 2014 Dimitris Zlatanidis Greece-Orestiada +# Copyright 2014-2016 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=OpenCobolIDE -VERSION=${VERSION:-2.3.1} +VERSION=${VERSION:-4.7.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -69,23 +69,14 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG +# Remove assertion about pyqode being in ocide package +sed -i "s/assert/# assert/" open_cobol_ide/main.py + +python3 setup.py install --root=$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 -mkdir -p $PKG/usr/share/applications -install -D -m644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop - -mkdir -p $PKG/usr/share/pixmaps/ -install -D -m644 share/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png - -mkdir -p $PKG/usr/man/man1/ -install -D -m644 share/open-cobol-ide.1 $PKG/usr/man/man1/open-cobol-ide.1 - -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |