summaryrefslogtreecommitdiff
path: root/office/org-mode/org-mode.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/org-mode/org-mode.SlackBuild')
-rw-r--r--office/org-mode/org-mode.SlackBuild37
1 files changed, 10 insertions, 27 deletions
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 <ValTimchenko@gmail.com>
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 \