summaryrefslogtreecommitdiff
path: root/network/nateon
diff options
context:
space:
mode:
authorcrocket <crockabiscuit@gmail.com>2011-10-15 08:17:17 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2011-10-22 10:17:07 -0200
commit74785af734180a2fefe8d88df67543179b7b61b7 (patch)
treef8f24f8dc1f8556bdafaba1c39cca8145ec870e1 /network/nateon
parent7b877db16746747728e3b303b68160139e2b6384 (diff)
downloadslackbuilds-74785af734180a2fefe8d88df67543179b7b61b7.tar.gz
network/nateon: Added (instant messenger for the nateon service)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/nateon')
-rw-r--r--network/nateon/README2
-rw-r--r--network/nateon/doinst.sh9
-rw-r--r--network/nateon/nateon.SlackBuild83
-rw-r--r--network/nateon/nateon.info10
-rw-r--r--network/nateon/slack-desc19
5 files changed, 123 insertions, 0 deletions
diff --git a/network/nateon/README b/network/nateon/README
new file mode 100644
index 0000000000..7d17a66291
--- /dev/null
+++ b/network/nateon/README
@@ -0,0 +1,2 @@
+nate provides an instant messenger service called nateon.
+This is the linux version of the messenger program.
diff --git a/network/nateon/doinst.sh b/network/nateon/doinst.sh
new file mode 100644
index 0000000000..3e5691a052
--- /dev/null
+++ b/network/nateon/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/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
diff --git a/network/nateon/nateon.SlackBuild b/network/nateon/nateon.SlackBuild
new file mode 100644
index 0000000000..864c3baa7e
--- /dev/null
+++ b/network/nateon/nateon.SlackBuild
@@ -0,0 +1,83 @@
+#!/bin/sh
+
+# Slackware build script for nateon
+
+# Written by crocket (crockabiscuit@gmail.com)
+
+PRGNAM=nateon
+VERSION=${VERSION:-1.2.0.326}
+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
+
+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
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+mv $PRGNAM-$(echo $VERSION | cut -d. -f-2) $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
+
+( cd $PKG/usr; mkdir -p share/icons; mv hicolor locolor share/icons )
+
+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
+cp -a \
+ AUTHORS BUGS INSTALL LICENSE NEWS README THANKS TODO 네이트닷컴서비스이용약관.txt \
+ 소스코드이용및서버접속약관.txt $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}
+
diff --git a/network/nateon/nateon.info b/network/nateon/nateon.info
new file mode 100644
index 0000000000..d286cf12b6
--- /dev/null
+++ b/network/nateon/nateon.info
@@ -0,0 +1,10 @@
+PRGNAM="nateon"
+VERSION="1.2.0.326"
+HOMEPAGE="http://kldp.net/projects/nateon/"
+DOWNLOAD="http://www.kldp.net/frs/download.php/5966/nateon-1.2.0.326.tar.bz2"
+MD5SUM="9c4c6413345828b2f5f2740f127f40b0"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="crocket"
+EMAIL="crockabiscuit@gmail.com"
+APPROVED="Erik Hanson"
diff --git a/network/nateon/slack-desc b/network/nateon/slack-desc
new file mode 100644
index 0000000000..11939a6635
--- /dev/null
+++ b/network/nateon/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+nateon: nateon (instant messenger for the nateon service)
+nateon:
+nateon: nate provides an instant messenger service called nateon.
+nateon: This is the linux version of the messenger program.
+nateon:
+nateon: Website : http://kldp.net/projects/nateon/
+nateon:
+nateon:
+nateon:
+nateon:
+nateon: