aboutsummaryrefslogtreecommitdiff
path: root/office
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
parent16c07bf41ed85ecaf23f5490a7954af66bbb0e7c (diff)
office/leafpad: Added to 12.0 repository
Diffstat (limited to 'office')
-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 000000000000..3a0dcc6f5cd3
--- /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 000000000000..6af9811528b0
--- /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 000000000000..831592fa1998
--- /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 000000000000..ee3b6a69ac78
--- /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 000000000000..7f72083cb8bb
--- /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: