desktop/desklaunch: Initial import

This commit is contained in:
Lehman Black 2010-05-11 14:03:45 +02:00 committed by Robby Workman
parent d335f32ad0
commit c9f9a74fce
4 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,5 @@
DeskLaunch is a small utility for creating desktop icons. A simple click will
launch the desired application. You will need to create a .desklaunchrc in
your home directory to use desklaunch. A sample .desklaunch can be found in
/usr/doc/desklaunch-$VERSION

View file

@ -0,0 +1,66 @@
#!/bin/sh
######################################
# Slackware Build Script #
######################################
# BUILDS: Desklaunch #
# HOME: http://www.oroborus.org #
# AUTHOR: Lehman Black #
# CONTACT: bzqwerty[at]gmail[dot]com #
######################################
# Modified by the SlackBuilds.org project
PRGNAM=desklaunch
VERSION=1.1.5
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" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
rm -rf $PKG $PRGNAM-$VERSION
mkdir -p $TMP $PKG/usr/bin $OUTPUT
cd $TMP
tar xvf $CWD/${PRGNAM}_$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
# Modify the Makefile so it will use custom CFLAGS if needed
sed -i 's%CFLAGS =%CFLAGS +=%g' Makefile
CFLAGS="$SLKCFLAGS" make || exit 1
# Rather than use the install target in the Makefile, let's just install the
# binary manually into the package directory - this avoids having to remove
# directories that are unnecessarily created by the install target
install -D -m 0755 desklaunch $PKG/usr/bin/desklaunch
strip --strip-unneeded $PKG/usr/bin/desklaunch
# Install the example desklaunchrc file provided by Debian :)
cat debian/example_rc > $PKG/usr/doc/$PRGNAM-$VERSION/desklaunchrc.example
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/man/man1
cat debian/desklaunch.1 | gzip -9 > $PKG/usr/man/man1/desklaunch.1.gz
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz

View file

@ -0,0 +1,8 @@
PRGNAM="desklaunch"
VERSION="1.1.5"
HOMEPAGE="http://www.oroborus.org"
DOWNLOAD="http://www.oroborus.org/debian/dists/sid/main/source/x11/desklaunch_1.1.5.tar.gz"
MD5SUM="502c8799e3972561589534b7e06214c6"
MAINTAINER="Lehman Black"
EMAIL="bzqwerty[at]gmail[dot]com"
APPROVED="robw810"

View file

@ -0,0 +1,11 @@
desklaunch: Desklaunch (desktop icon utility)
desklaunch:
desklaunch: DeskLaunch is a small utility for creating desktop icons. A simple
desklaunch: click will launch the desired application. To use desklaunch, you
desklaunch: will need to create a .desklaunchrc in your home directory.
desklaunch:
desklaunch: http://www.oroborus.org
desklaunch:
desklaunch:
desklaunch:
desklaunch: