diff options
Diffstat (limited to 'development/lazarus/lazarus.SlackBuild')
-rw-r--r-- | development/lazarus/lazarus.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/development/lazarus/lazarus.SlackBuild b/development/lazarus/lazarus.SlackBuild index a9d88e6524..e87ed26c67 100644 --- a/development/lazarus/lazarus.SlackBuild +++ b/development/lazarus/lazarus.SlackBuild @@ -22,7 +22,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=lazarus -VERSION=${VERSION:-0.9.28.2} +VERSION=${VERSION:-0.9.30} # We'll define ARCH in just a bit... BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,10 +34,15 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "x86_64" ]; then +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i386 ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +if ! [[ "$ARCH" = "x86_64" || "$ARCH" = "i386" ]]; then printf "\nThis won't build on $ARCH.\n\n";exit 1 -else - ARCH=i386 fi set -e @@ -59,7 +64,7 @@ if [ "$LCL" = "qt" ]; then OPT="-dUSE_QT_45" fi -# Compilation dont need ./configure +# Compilation doesn't need ./configure make clean make all \ PREFIX=/usr \ |