diff options
author | Binh Nguyen <binhvng@gmail.com> | 2012-09-24 21:12:50 +0700 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-24 21:03:59 -0500 |
commit | 39a1f09e3665c38d9ffd87a51abb1df045b67ace (patch) | |
tree | 813a28eabecb8b0b92d16dcdde0cb8fc6e594770 /office | |
parent | afd7994e1c67d2679eb16704b78b3477c28573d8 (diff) |
office/chmsee: Updated for version 1.99.14.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/chmsee/chmsee.SlackBuild | 56 | ||||
-rw-r--r-- | office/chmsee/chmsee.info | 6 | ||||
-rw-r--r-- | office/chmsee/doinst.sh | 9 |
3 files changed, 32 insertions, 39 deletions
diff --git a/office/chmsee/chmsee.SlackBuild b/office/chmsee/chmsee.SlackBuild index f319d3a4e5ce..72d640bf861b 100644 --- a/office/chmsee/chmsee.SlackBuild +++ b/office/chmsee/chmsee.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for chmsee -# Copyright 2011 Binh Nguyen <binhvng@gmail.com> +# Copyright 2011-2012 Binh Nguyen <binhvng@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=chmsee -VERSION=${VERSION:-1.3.1.1} +VERSION=${VERSION:-1.99.14} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,27 +40,13 @@ 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 -eu rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -69,23 +55,39 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -mkdir build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_VERBOSE_MAKEFILE:BOOL="on" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release .. +cd src/ + cp Makefile.arch Makefile + sed -i 's/python2/python/' Makefile make - make install DESTDIR=$PKG cd - +mkdir -p $PKG/usr/share/{chmsee,applications,pixmaps} +cp -a * $PKG/usr/share/chmsee +rm -rf $PKG/usr/share/chmsee/src +mv $PKG/usr/share/chmsee/data/chmsee.desktop.in \ + $PKG/usr/share/applications/chmsee.desktop +sed -i 's/_//g' $PKG/usr/share/applications/chmsee.desktop +mv $PKG/usr/share/chmsee/data/chmsee-icon.png \ + $PKG/usr/share/pixmaps/ + +# Create a launcher +mkdir -p $PKG/usr/bin +cat <<EOF >$PKG/usr/bin/chmsee +#!/bin/sh + +xulrunner /usr/share/chmsee/application.ini "\$@" + +EOF +chmod 755 $PKG/usr/bin/chmsee find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +( cd $PKG/usr/doc/$PRGNAM-$VERSION +for i in AUTHORS COPYING ChangeLog HACKING NEWS README.md; do + ln -s ../../share/chmsee/$i . +done +) cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/office/chmsee/chmsee.info b/office/chmsee/chmsee.info index ef44dede3355..931b90406ab0 100644 --- a/office/chmsee/chmsee.info +++ b/office/chmsee/chmsee.info @@ -1,9 +1,9 @@ PRGNAM="chmsee" -VERSION="1.3.1.1" +VERSION="1.99.14" HOMEPAGE="http://code.google.com/p/chmsee/" -DOWNLOAD="http://chmsee.googlecode.com/files/chmsee-1.3.1.1.tar.gz" +DOWNLOAD="ftp://harrier.slackbuilds.org/misc/chmsee-1.99.14.tar.xz" +MD5SUM="e5b8bec03f756571bc8042983bf37636" DOWNLOAD_x86_64="" -MD5SUM="7c226e6f518284a040ad3b9433d5e218" MD5SUM_x86_64="" REQUIRES="xulrunner" MAINTAINER="Binh Nguyen" diff --git a/office/chmsee/doinst.sh b/office/chmsee/doinst.sh index 402638a07f2a..65fd35241875 100644 --- a/office/chmsee/doinst.sh +++ b/office/chmsee/doinst.sh @@ -2,12 +2,3 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 fi -if [ -x /usr/bin/update-mime-database ]; then - /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 -fi - -if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then - if [ -x /usr/bin/gtk-update-icon-cache ]; then - /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 - fi -fi |