aboutsummaryrefslogtreecommitdiff
path: root/academic/xdrawchem/xdrawchem.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/xdrawchem/xdrawchem.SlackBuild')
-rw-r--r--academic/xdrawchem/xdrawchem.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/academic/xdrawchem/xdrawchem.SlackBuild b/academic/xdrawchem/xdrawchem.SlackBuild
index c25fed996a27..c5bfe15e0d9a 100644
--- a/academic/xdrawchem/xdrawchem.SlackBuild
+++ b/academic/xdrawchem/xdrawchem.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for xdrawchem
-# Copyright 2006-2007 Robby Workman (http://rlworkman.net)
+# Copyright 2006-2008 Robby Workman (http://rlworkman.net)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Modified by the SlackBuilds.org project
-
PRGNAM=xdrawchem
VERSION=1.9.9
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -42,10 +41,10 @@ fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go-w+r .
@@ -58,13 +57,15 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- || exit 1
+ --enable-static=no \
+ --build=$ARCH-slackware-linux
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
# Install icon and desktop file
-install -D -m 0644 $CWD/xdrawchem.desktop $PKG/usr/share/applications/xdrawchem.desktop
+install -D -m 0644 $CWD/xdrawchem.desktop \
+ $PKG/usr/share/applications/xdrawchem.desktop
install -D -m 0644 xdrawchem/xdc.xpm $PKG/usr/share/pixmaps/xdc.xpm
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
@@ -84,4 +85,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz