From 3f5f2cea710c6b601e3f55f17856ac6191717a40 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Sat, 11 Apr 2015 18:20:35 +0700 Subject: academic/aline: Add option to change row length. Signed-off-by: Willy Sudiarto Raharjo --- academic/aline/aline.SlackBuild | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'academic/aline/aline.SlackBuild') diff --git a/academic/aline/aline.SlackBuild b/academic/aline/aline.SlackBuild index 30f92ce9fd..469e0812b6 100644 --- a/academic/aline/aline.SlackBuild +++ b/academic/aline/aline.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for aline -# Copyright 2013 Petar Petrov, ppetrov@paju.oulu.fi +# Copyright 2013-2015 Petar Petrov, petar.petrov@student.oulu.fi # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=aline VERSION=${VERSION:-1.0.025} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SRCVER=011208 @@ -35,6 +35,10 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} +# Maximum row length. The default is 100 and will not be changed, +# unless you pass some other value to the script. +ROW=${ROW:-100} + set -e rm -rf $PKG @@ -45,10 +49,10 @@ tar xvf $CWD/${PRGNAM}_${SRCVER}.tar.gz cd ${PRGNAM}_${SRCVER} chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -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 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Point aline to the correct paths of its colour schemes, examples, # plugins and scripts. @@ -57,6 +61,9 @@ sed -i "s:%%SELFexample:/usr/share/$PRGNAM/example:g" bin/aline sed -i "s:%%SELFplugins:/usr/share/$PRGNAM/plugins:g" bin/aline sed -i "s:%%SELFscripts:/usr/share/$PRGNAM/scripts:g" bin/aline +# Change the maximum row length to a value you specify. +[ ! "$ROW" = "100" ] && sed -i "s:10,100,40:10,$ROW,40:g" bin/aline + install -D -m755 bin/$PRGNAM $PKG/usr/bin/$PRGNAM install -D -m755 bin/convertdump $PKG/usr/bin/convertdump -- cgit v1.2.3