diff options
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 61983299bf028..272bd97f22989 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 |