diff options
Diffstat (limited to 'misc/jmri/jmri.SlackBuild')
-rw-r--r-- | misc/jmri/jmri.SlackBuild | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/misc/jmri/jmri.SlackBuild b/misc/jmri/jmri.SlackBuild index 55bc1f4273..fd590a40f5 100644 --- a/misc/jmri/jmri.SlackBuild +++ b/misc/jmri/jmri.SlackBuild @@ -25,10 +25,16 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=jmri -VERSION=${VERSION:-4.6} -REVISION=${REVISION:-R81496dc} +VERSION=${VERSION:-4.8} +REVISION=${REVISION:-Rbe0ff15} -ARCH=i586 # some embedded libraries are 32 bit only, see lib/linux/* +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -46,7 +52,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $TARNAM -tar xvf $CWD/$TARNAM.$VERSION-$REVISION.tgz +tar xvf $CWD/$TARNAM.$VERSION.$REVISION.tgz cd $TARNAM chown -R root:root . find -L . \ |