summaryrefslogtreecommitdiff
path: root/office/xmind/xmind.SlackBuild
diff options
context:
space:
mode:
authorAndre Barboza <bmg.andre@gmail.com>2015-01-07 08:42:26 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-01-07 23:12:12 +0700
commitfe37079c0eed01b6118b46447249b4dcb27047db (patch)
tree2240964eff504fd6150a9fe8cf6931e089a3df6d /office/xmind/xmind.SlackBuild
parent025780df929eccde01515b9253fca2ad86c8b115 (diff)
downloadslackbuilds-fe37079c0eed01b6118b46447249b4dcb27047db.tar.gz
office/xmind: Updated for version 3.5.1 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/xmind/xmind.SlackBuild')
-rw-r--r--office/xmind/xmind.SlackBuild33
1 files changed, 18 insertions, 15 deletions
diff --git a/office/xmind/xmind.SlackBuild b/office/xmind/xmind.SlackBuild
index 48c1d683ae..dcdea51a1c 100644
--- a/office/xmind/xmind.SlackBuild
+++ b/office/xmind/xmind.SlackBuild
@@ -23,9 +23,12 @@
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# updated by Andre Barboza <bmg.andre@gmail.com>
PRGNAM=xmind
-VERSION=3.2.1.201011212218
+VERSION=${VERSION:-3.5.1}
+PKGVERSION=3.5.1.201411201906
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -42,26 +45,22 @@ OUTPUT=${OUTPUT:-/tmp}
set -eu
-# Get the real version, thanks to Fred Richards.
-REAL_VER=$(ar p xmind-${VERSION}_${DEBARCH}.deb control.tar.gz | tar zxO ./control | grep Version | awk '{print $2}' | cut -d- -f1)
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $PKG
-ar p $CWD/xmind-${VERSION}_${DEBARCH}.deb data.tar.gz | gunzip -d | tar xv
+ar p $CWD/xmind-linux-${PKGVERSION}_${DEBARCH}.deb data.tar.gz | gunzip -d | tar xv
# Move from /usr/local/xmind to /opt/xmind
mkdir -p $PKG/opt
-mv $PKG/usr/local/xmind/ $PKG/opt/
-rmdir $PKG/usr/local
+mv $PKG/usr/lib/xmind/ $PKG/opt/
# Create launch script
mkdir -p $PKG/usr/bin
-cat > $PKG/usr/bin/xmind << XMIND
+cat > $PKG/usr/bin/XMind << XMIND
#!/bin/sh
-/opt/xmind/xmind
+/opt/xmind/XMind
XMIND
-chmod +x $PKG/usr/bin/xmind
+chmod +x $PKG/usr/bin/XMind
# Modify executable in xmind.desktop
sed -i 's#/usr/local/#/opt/#' $PKG/usr/share/applications/xmind.desktop
@@ -71,17 +70,21 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
chmod 0755 $PKG # Put this back.
-mkdir -p $PKG/usr/doc/$PRGNAM-$REAL_VER
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$REAL_VER/$PRGNAM.SlackBuild
-ln -s /opt/xmind/readme.txt $PKG/usr/doc/$PRGNAM-$REAL_VER/
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+mv $PKG/usr/lib/xmindnet/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/lib/xmindnet/
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mv $PKG/usr/share/man $PKG/usr/
+rm -rf $PKG/usr/lib/
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$REAL_VER-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}