mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
academic/opengrads: Added to 13.0 repository
This commit is contained in:
parent
458fbeb260
commit
5f90a1d47b
6 changed files with 125 additions and 0 deletions
5
academic/opengrads/README
Normal file
5
academic/opengrads/README
Normal file
|
@ -0,0 +1,5 @@
|
|||
The Grid Analysis and Display System (GrADS) is an interactive desktop tool for
|
||||
easy access, manipulation, and visualization of earth science data.
|
||||
|
||||
The OpenGrADS Project seeks to develop advanced interfaces and extensions based
|
||||
on the main GrADS engine.
|
87
academic/opengrads/opengrads.SlackBuild
Normal file
87
academic/opengrads/opengrads.SlackBuild
Normal file
|
@ -0,0 +1,87 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for OpenGrADS
|
||||
|
||||
# Copyright 2009 Eduardo Oda
|
||||
# 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.
|
||||
|
||||
# Written by Oda - edu.oda@gmail.com
|
||||
|
||||
PRGNAM=opengrads
|
||||
VERSION=${VERSION:-2.0.a7.oga.2}
|
||||
ARCH=${ARCH:-i686}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$ARCH" != "x86_64" ]; then
|
||||
# Just in case someone has ARCH=i486 set in the environment
|
||||
ARCH=i686
|
||||
fi
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $PKG/opt $OUTPUT
|
||||
tar xvf grads-$VERSION-bundle-$ARCH-*-linux-gnu.tar.gz -C $PKG/opt
|
||||
cd $PKG/opt
|
||||
chown -R root:root grads-$VERSION
|
||||
# Let's use an unversioned install directory for less noisy upgrades
|
||||
mv grads-$VERSION opengrads
|
||||
# and then symlink to replicate the original directory structure
|
||||
ln -s opengrads grads-$VERSION
|
||||
cd opengrads
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
( cd $PKG
|
||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null || true
|
||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||
xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
( cd $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
ln -s ../../../opt/opengrads/COPYRIGHT .
|
||||
ln -s ../../../opt/opengrads/INSTALL .
|
||||
ln -s ../../../opt/opengrads/NEWS .
|
||||
ln -s ../../../opt/opengrads/README .
|
||||
ln -s ../../../opt/opengrads/Contents/Resources/Documentation .
|
||||
)
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/etc/profile.d
|
||||
cp $CWD/opengrads.sh $PKG/etc/profile.d/opengrads.sh
|
||||
cp $CWD/opengrads.csh $PKG/etc/profile.d/opengrads.csh
|
||||
chmod 0755 $PKG/etc/profile.d/*
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
2
academic/opengrads/opengrads.csh
Normal file
2
academic/opengrads/opengrads.csh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/csh
|
||||
setenv PATH ${PATH}:/opt/opengrads/Contents
|
10
academic/opengrads/opengrads.info
Normal file
10
academic/opengrads/opengrads.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="opengrads"
|
||||
VERSION="2.0.a7.oga.2"
|
||||
HOMEPAGE="http://www.opengrads.org/"
|
||||
DOWNLOAD="http://sourceforge.net/projects/opengrads/files/grads2/2.0.a7.oga.2/grads-2.0.a7.oga.2-bundle-i686-pc-linux-gnu.tar.gz/download"
|
||||
MD5SUM="29284d64827012c9a188cf7ecb2e6924"
|
||||
DOWNLOAD_x86_64="http://sourceforge.net/projects/opengrads/files/grads2/2.0.a7.oga.2/grads-2.0.a7.oga.2-bundle-x86_64-unknown-linux-gnu.tar.gz/download"
|
||||
MD5SUM_x86_64="a426e1995bac6bd89f45f8ef9cb3b3e1"
|
||||
MAINTAINER="Oda"
|
||||
EMAIL="edu.oda@gmail.com"
|
||||
APPROVED="rworkman"
|
2
academic/opengrads/opengrads.sh
Normal file
2
academic/opengrads/opengrads.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
export PATH=${PATH}:/opt/opengrads/Contents
|
19
academic/opengrads/slack-desc
Normal file
19
academic/opengrads/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler-----------------------------------------------------|
|
||||
opengrads: OpenGrADS (Grid Analysis and Display System)
|
||||
opengrads:
|
||||
opengrads: The Grid Analysis and Display System (GrADS) is an interactive
|
||||
opengrads: desktop tool for easy access, manipulation, and visualization of
|
||||
opengrads: earth science data.
|
||||
opengrads:
|
||||
opengrads: The OpenGrADS Project seeks to develop advanced interfaces and
|
||||
opengrads: extensions based on the main GrADS engine.
|
||||
opengrads:
|
||||
opengrads:
|
||||
opengrads:
|
Loading…
Reference in a new issue