summaryrefslogtreecommitdiff
path: root/office/leafpad/leafpad.SlackBuild
diff options
context:
space:
mode:
authorGrigorios Bouzakis <grbzks@gmail.com>2010-05-11 20:01:49 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 20:01:49 +0200
commit97d652ff7a5f046d916fb1b82aa889f82da42b30 (patch)
treeb4b004312e8df2a218c7739f0474df587632e9c0 /office/leafpad/leafpad.SlackBuild
parent16c07bf41ed85ecaf23f5490a7954af66bbb0e7c (diff)
downloadslackbuilds-97d652ff7a5f046d916fb1b82aa889f82da42b30.tar.gz
office/leafpad: Added to 12.0 repository
Diffstat (limited to 'office/leafpad/leafpad.SlackBuild')
-rw-r--r--office/leafpad/leafpad.SlackBuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/office/leafpad/leafpad.SlackBuild b/office/leafpad/leafpad.SlackBuild
new file mode 100644
index 0000000000..831592fa19
--- /dev/null
+++ b/office/leafpad/leafpad.SlackBuild
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+# Slackware build script for leafpad
+# Written by Grigorios Bouzakis (grbzks@gmail.com)
+
+# Slightly modified by the SlackBuilds.org project
+set -e
+
+PRGNAM=leafpad
+VERSION=0.8.11
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --enable-chooser
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README $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.tgz