From b44744c2895bdd260ad95bcbc9e35c669afee8b6 Mon Sep 17 00:00:00 2001 From: Valeriy Timchenko Date: Sun, 11 Dec 2011 11:43:02 -0200 Subject: office/org-mode: Updated for version 7.7. Signed-off-by: Niels Horn --- office/org-mode/org-mode.SlackBuild | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) (limited to 'office/org-mode/org-mode.SlackBuild') diff --git a/office/org-mode/org-mode.SlackBuild b/office/org-mode/org-mode.SlackBuild index a6f4c34c1a..0121cc754d 100644 --- a/office/org-mode/org-mode.SlackBuild +++ b/office/org-mode/org-mode.SlackBuild @@ -5,37 +5,17 @@ # Written by Valeriy Timchenko PRGNAM=org-mode -VERSION=${VERSION:-7.5} +VERSION=${VERSION:-7.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH="noarch" CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -52,17 +32,20 @@ find . \ -exec chmod 644 {} \; patch Makefile $CWD/Makefile.patch -DESTDIR=/usr make all pdf html +DESTDIR=/usr make all html +mv doc/{org,org-$pkgver} DESTDIR=$PKG/usr make install -DESTDIR=$PKG/usr PKG=$PKG make install-info +DESTDIR=$PKG/usr make install-info +#DESTDIR=$PKG/usr PKG=$PKG make install-info find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -rm -f $PKG/usr/info/dir -gzip -9 $PKG/usr/info/* +rm -f $PKG/usr/share/info/dir +gzip -9 $PKG/usr/share/info/* # Move org.gz to org-$VERSION.gz, so EMACS's org.gz won't be overwritten -mv $PKG/usr/info/{org,org-$VERSION}.gz +mv $PKG/usr/share/info/{org,org-$VERSION}.gz +mv $PKG/usr/share/info $PKG/usr/info mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ -- cgit v1.2.3