aboutsummaryrefslogtreecommitdiff
path: root/development/idea/idea.SlackBuild
diff options
context:
space:
mode:
authorMario Antunes <mariolpantunes@gmail.com>2014-07-05 08:04:22 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-05 08:04:22 +0700
commitbcd2feeb41b807060023f5e609c1720ffea16ffc (patch)
treee3eacaf2ad858d5930116cf3d61bac305ed42a5d /development/idea/idea.SlackBuild
parentb46b769505f16dd3cc1cf730a96c9dc8da2a0f01 (diff)
development/idea: Added (Development IDE).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/idea/idea.SlackBuild')
-rw-r--r--development/idea/idea.SlackBuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/development/idea/idea.SlackBuild b/development/idea/idea.SlackBuild
new file mode 100644
index 0000000000000..79fa534fdf9b9
--- /dev/null
+++ b/development/idea/idea.SlackBuild
@@ -0,0 +1,56 @@
+#!/bin/bash
+#
+# Slackware build script for IntelliJIDEA
+# Written by Mario Antunes (mariolpantunes@gmail.com)
+# This script is just a binary repackaging.
+
+PRGNAM=idea
+ARCNAM=ideaIC
+VERSION=${VERSION:-13.1.3}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG/opt/ $OUTPUT
+cd $PKG/opt/
+tar xvf $CWD/$ARCNAM-$VERSION.tar.gz
+mv * $PRGNAM
+
+mkdir -p $PKG/etc/profile.d
+cat << EOF > $PKG/etc/profile.d/$PRGNAM.sh
+#!/bin/sh
+export IDEA_HOME=/opt/idea
+export PATH=\$PATH:\$IDEA_HOME/bin
+EOF
+cat << EOF > $PKG/etc/profile.d/$PRGNAM.csh
+#!/bin/csh
+setenv IDEA_HOME /opt/idea
+setenv PATH \$PATH:\$IDEA_HOME/bin
+EOF
+chmod 755 $PKG/etc/profile.d/*
+
+install -D -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
+install -D -m 0644 $PKG/opt/$PRGNAM/bin/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
+
+find $PKG -print0 | xargs -0 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
+cd $PKG/opt/$PRGNAM
+mv *.txt license $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}