diff options
author | Valeriy Timchenko <ValTimchenko@gmail.com> | 2011-12-11 11:43:02 -0200 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-12-11 11:43:02 -0200 |
commit | b44744c2895bdd260ad95bcbc9e35c669afee8b6 (patch) | |
tree | c21c2e56b69a645b295a771c811a86a526f60758 /office/org-mode/org-mode.SlackBuild | |
parent | 0d6a089515a3963fde74d05db0b2fbc748b67275 (diff) | |
download | slackbuilds-b44744c2895bdd260ad95bcbc9e35c669afee8b6.tar.gz |
office/org-mode: Updated for version 7.7.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'office/org-mode/org-mode.SlackBuild')
-rw-r--r-- | office/org-mode/org-mode.SlackBuild | 37 |
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 \ |