diff options
Diffstat (limited to 'graphics/fotoxx/fotoxx.SlackBuild')
-rw-r--r-- | graphics/fotoxx/fotoxx.SlackBuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/graphics/fotoxx/fotoxx.SlackBuild b/graphics/fotoxx/fotoxx.SlackBuild index b27b445801..9b3173eb4d 100644 --- a/graphics/fotoxx/fotoxx.SlackBuild +++ b/graphics/fotoxx/fotoxx.SlackBuild @@ -23,11 +23,20 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=fotoxx -VERSION=9.9 -ARCH=${ARCH:-i486} +VERSION=10.3.1 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -76,9 +85,6 @@ mkdir -p $PKG/usr/share/{applications,pixmaps} cat $CWD/fotoxx.desktop > $PKG/usr/share/applications/fotoxx.desktop ( cd $PKG/usr/share/pixmaps ; ln -s ../fotoxx/icons/fotoxx.png ) -# Fixup a few other nits -mv $PKG/usr/share/fotoxx/locales $PKG/usr/share/locale - find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |