diff options
author | antonioleal <antonioleal@yahoo.com> | 2017-11-12 21:45:08 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-18 12:40:22 +0700 |
commit | c9aefa321e5e50a6256b5042ed29efa1778aa929 (patch) | |
tree | cab7947d2743c811058b5902af8adabfd6d842f4 /development/codeblocks/codeblocks.SlackBuild | |
parent | d3eac0628c84c8f9b1a308973ce8729b4c658f54 (diff) | |
download | slackbuilds-c9aefa321e5e50a6256b5042ed29efa1778aa929.tar.gz |
development/codeblocks: Updated for version 16.01.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'development/codeblocks/codeblocks.SlackBuild')
-rw-r--r-- | development/codeblocks/codeblocks.SlackBuild | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/development/codeblocks/codeblocks.SlackBuild b/development/codeblocks/codeblocks.SlackBuild index 61983299bf..272bd97f22 100644 --- a/development/codeblocks/codeblocks.SlackBuild +++ b/development/codeblocks/codeblocks.SlackBuild @@ -59,8 +59,8 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvfz $CWD/$PRGNAM\_$VERSION.tar.gz +rm -rf $PRGNAM-$VERSION.release +tar xvf $CWD/$PRGNAM\_$VERSION.tar.gz cd $PRGNAM-$VERSION.release chown -R root:root . find -L . \ @@ -69,6 +69,11 @@ 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 {} \; +WITHPLUGINS='' +if [ "${PLUGINS:-no}" = 'yes' ]; then + WITHPLUGINS='--with-contrib-plugins=all' +fi + ./bootstrap LDFLAGS="-lX11" \ @@ -76,23 +81,24 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS -fpermissive" \ ./configure \ --prefix=/usr \ - --libdir=/usr/lib$LIBDIRSUFFIX \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --docdir=/usr/doc/$PKGNAME-$VERSION \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ --disable-static \ - --build=$ARCH-slackware-linux # --with-contrib-plugins=all - -# If you want to enable all contrib-plugins, uncomment the option --with-contrib-plugins=all in the line above. + $WITHPLUGINS \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG -gzip -9 $PKG/usr/man/man?/*.? +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 AUTHORS BUGS BUILD COMPILERS COPYING ChangeLog NEWS README TODO \ +cp -a \ + AUTHORS BUGS BUILD COMPILERS COPYING ChangeLog NEWS README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |