diff options
Diffstat (limited to 'academic/gelemental/gelemental.SlackBuild')
-rw-r--r-- | academic/gelemental/gelemental.SlackBuild | 48 |
1 files changed, 30 insertions, 18 deletions
diff --git a/academic/gelemental/gelemental.SlackBuild b/academic/gelemental/gelemental.SlackBuild index 1d475d4ccd..da065fbbff 100644 --- a/academic/gelemental/gelemental.SlackBuild +++ b/academic/gelemental/gelemental.SlackBuild @@ -1,21 +1,32 @@ #!/bin/sh # Slackware build script for gelemental -# Written by Petar Petrov, <ppetrov@paju.oulu.fi> and -# hereby submitted to the public domain -# Based on the gelemental PKGBUILD from Archlinux AUR -# (https://aur.archlinux.org/packages.php?ID=10591). -# PKGBUILD submitter is Phrodo_00 and maintainer is -# chelqo. Thank you! - -# THIS SLACKBUILD IS DISTRIBUTETD IN THE HOPE OF BEING -# USEFUL BUT WITHOUT ANY WARRANTY. THE AUTHOR IS _NOT_ -# RESPONSIBLE FOR ANY DAMAGE OR DATA LOSS CAUSED BY IT. +# Copyright 2011-2012 Petar Petrov, ppetrov@paju.oulu.fi +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# The patch is from openSUSE (IIRC) and source tarball is from Debian. Thank you! PRGNAM=gelemental VERSION=${VERSION:-1.2.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -51,10 +62,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar -xvf $CWD/${PRGNAM}_${VERSION}.orig.tar.gz -# The patch is from Archlinux AUR, as mentioned above. -# For AUR it has been taken from Debian. Thank you both! patch -p0 -s < $CWD/$PRGNAM-$VERSION-gcc43.patch cd $PRGNAM-$VERSION @@ -66,9 +75,10 @@ find . \ -exec chmod 644 {} \; # Change the menu category to "Education" -cd data -sed "s:Categories=GTK;Utility;Science;Chemistry;:Categories=Education;:" -i gelemental.desktop.in -cd .. +sed -i "s:Categories=GTK;Utility;Science;Chemistry;:Categories=Education;:" data/gelemental.desktop.in + +# Increase the info button size +sed -i "s:set_size_request (50, 50):set_size_request (64, 64):" src/buttons.cc CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -91,7 +101,9 @@ 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 COPYING ChangeLog INSTALL README NEWS TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS ChangeLog COPYING COPYING.DATA INSTALL README NEWS NEWS-GPeriodic TODO TRANSLATORS \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |