diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2020-01-03 01:01:01 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2020-01-03 02:06:13 -0600 |
commit | ec2cc428450f58bbd7957f3387e02640edee2546 (patch) | |
tree | f5cced522e003d333f4bb4652e8ae234b7f0d323 /gis | |
parent | d9f435aba617384c923ce438fe7bc148c1d38834 (diff) | |
download | slackbuilds-ec2cc428450f58bbd7957f3387e02640edee2546.tar.gz |
gis/saga-gis: Fixed PRGNAM in build script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r-- | gis/saga-gis/saga-gis.SlackBuild | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/gis/saga-gis/saga-gis.SlackBuild b/gis/saga-gis/saga-gis.SlackBuild index c15f4c5477..29ef4478af 100644 --- a/gis/saga-gis/saga-gis.SlackBuild +++ b/gis/saga-gis/saga-gis.SlackBuild @@ -22,12 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=saga -PKGNAM=${PRGNAM}-gis +PRGNAM=saga-gis VERSION=${VERSION:-7.3.0} BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +SRCNAM=saga + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i586 ;; @@ -38,7 +39,7 @@ fi CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM +PKG=$TMP/package-$SRCNAM OUTPUT=${OUTPUT:-/tmp} # issues with -O2 causing build failures @@ -61,9 +62,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -100,14 +101,14 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mv $PKG/usr/share/metainfo $PKG/usr/share/appdata -mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS COPYING ChangeLog NEWS README \ - $PKG/usr/doc/$PKGNAM-$VERSION -cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild + $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 cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |