diff options
author | Jeanne-Kamikaze <jeannekamikaze@gmail.com> | 2010-05-13 00:24:21 +0200 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 00:24:21 +0200 |
commit | d7a968965fc8d427822aa9f507e64bffb84357e1 (patch) | |
tree | bbf5dd12490990233e2c87896377e68387a5cf6c /development/codeblocks/codeblocks.SlackBuild | |
parent | f8ce6e0966807c3c72b8880b60008f44ddcaa66f (diff) |
development/codeblocks: Updated for version 8.02
Diffstat (limited to 'development/codeblocks/codeblocks.SlackBuild')
-rw-r--r-- | development/codeblocks/codeblocks.SlackBuild | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/development/codeblocks/codeblocks.SlackBuild b/development/codeblocks/codeblocks.SlackBuild index e1bf469e08dd3..4275dffd03fe3 100644 --- a/development/codeblocks/codeblocks.SlackBuild +++ b/development/codeblocks/codeblocks.SlackBuild @@ -4,31 +4,30 @@ # Written by Jeanne-Kamikaze (AKA SlackerJeanne) (jeannekamikaze@gmail.com) # Modified by Erik Hanson <erik@slackbuilds.org> -# The software belongs and is copyrighted by the Code::Blocks team. -# The proper license can be found along with the software source code. - -set -eu - PRGNAM=codeblocks VERSION=8.02 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -CWD=`pwd` + +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -DOC="AUTHORS BUGS BUILD COMPILERS COPYING NEWS README TODO" - if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -eu + rm -rf $PKG mkdir -p $TMP $PKG rm -rf $TMP/$PRGNAM-$VERSION @@ -42,13 +41,13 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --mandir=/usr/man \ --disable-static \ --with-contrib-plugins=all \ - --build=$ARCH-slackware-linux \ - --host=$ARCH-slackware-linux + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG @@ -56,11 +55,14 @@ make install-strip DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a $DOC $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS BUGS BUILD COMPILERS COPYING NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |