summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--office/leafpad/README8
-rw-r--r--office/leafpad/doinst.sh4
-rw-r--r--office/leafpad/leafpad.SlackBuild57
-rw-r--r--office/leafpad/leafpad.info8
-rw-r--r--office/leafpad/slack-desc19
5 files changed, 96 insertions, 0 deletions
diff --git a/office/leafpad/README b/office/leafpad/README
new file mode 100644
index 0000000000..3a0dcc6f5c
--- /dev/null
+++ b/office/leafpad/README
@@ -0,0 +1,8 @@
+Leafpad is a simple GTK+ text editor that emphasizes simplicity. As development
+focuses on keeping weight down to a minimum, only the most essential features
+are implemented in the editor. Leafpad is simple to use, is easily compiled,
+requires few libraries, and starts up quickly.
+
+NOTE: leafpad has an optional dependency of libgnomeprint & libgnomeprintui
+both of which are available on SlackBuilds.org.
+
diff --git a/office/leafpad/doinst.sh b/office/leafpad/doinst.sh
new file mode 100644
index 0000000000..6af9811528
--- /dev/null
+++ b/office/leafpad/doinst.sh
@@ -0,0 +1,4 @@
+if [ -x usr/bin/update-desktop-database ]; then
+ usr/bin/update-desktop-database -q usr/share/applications
+fi
+
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
diff --git a/office/leafpad/leafpad.info b/office/leafpad/leafpad.info
new file mode 100644
index 0000000000..ee3b6a69ac
--- /dev/null
+++ b/office/leafpad/leafpad.info
@@ -0,0 +1,8 @@
+PRGNAM="leafpad"
+VERSION="0.8.11"
+HOMEPAGE="http://tarot.freeshell.org/leafpad/"
+DOWNLOAD="http://savannah.nongnu.org/download/leafpad/leafpad-0.8.11.tar.gz"
+MD5SUM="9eef86c3dafe3274c3a06166bd29d1c0"
+MAINTAINER="Grigorios Bouzakis"
+EMAIL="grbzks@gmail.com"
+APPROVED="BP{k}"
diff --git a/office/leafpad/slack-desc b/office/leafpad/slack-desc
new file mode 100644
index 0000000000..7f72083cb8
--- /dev/null
+++ b/office/leafpad/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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+leafpad: leafpad (A notepad clone for GTK+ 2.0)
+leafpad:
+leafpad: Leafpad is a simple GTK+ text editor that emphasizes simplicity.
+leafpad: As development focuses on keeping weight down to a minimum,
+leafpad: only the most essential features are implemented in the editor.
+leafpad: Leafpad is simple to use, it's easily compiled, requires few
+leafpad: libraries, and starts up quickly.
+leafpad:
+leafpad: Homepage: http://tarot.freeshell.org/leafpad/
+leafpad:
+leafpad: