desktop/obconf: Updated for version 2.0.3

This commit is contained in:
Chess Griffin 2010-05-11 19:43:56 +02:00 committed by Robby Workman
parent a9ca4b9f63
commit a9c884b8eb
5 changed files with 42 additions and 29 deletions

View File

@ -2,4 +2,3 @@ ObConf is a GTK+ tool to assist with the configuration of the
Openbox window manager.
Requires Openbox, which is available on SlackBuilds.org.

9
desktop/obconf/doinst.sh Normal file
View File

@ -0,0 +1,9 @@
if [ -x usr/bin/update-desktop-database ]; then
usr/bin/update-desktop-database -q usr/share/applications
fi
if [ -x usr/bin/update-mime-database ]; then
usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
fi

View File

@ -2,19 +2,20 @@
# Slackware build script for obconf
# Written by Chess Griffin <chess at chessgriffin dot com>
# Written by Chess Griffin <chess@chessgriffin.com>
PRGNAM=obconf
VERSION=1.6
ARCH=${ARCH:-i486}
PRGNAM=obconf
VERSION=2.0.3
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=`pwd`
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="ABOUT-NLS AUTHORS COPYING README TODO"
DOCS="ABOUT-NLS AUTHORS CHANGELOG COPYING README"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@ -22,12 +23,14 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION || exit 1
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@ -36,30 +39,23 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
|| exit 1
--localstatedir=/var
make || exit 1
make install DESTDIR=$PKG || exit 1
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 "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)
if [ -d $PKG/usr/man ]; then
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in `find . -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $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

View File

@ -1,8 +1,8 @@
PRGNAM="obconf"
VERSION="1.6"
HOMEPAGE="http://tr.openmonkey.com/pages/obconf"
DOWNLOAD="http://tr.openmonkey.com/files/obconf/obconf-1.6.tar.gz"
MD5SUM="aaf62498b11d52dfce7a0b6060867a19 "
VERSION="2.0.3"
HOMEPAGE="http://icculus.org/openbox/index.php/ObConf:About"
DOWNLOAD="http://icculus.org/openbox/obconf/obconf-2.0.3.tar.gz"
MD5SUM="b22e273721851dedad72acbc77eefb68"
MAINTAINER="Chess Griffin"
EMAIL="chess@chessgriffin.com"
APPROVED="BP{k},robw810"
APPROVED="rworkman"

View File

@ -1,10 +1,19 @@
obconf: ObConf Openbox preferences manager
# 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------------------------------------------------------|
obconf: ObConf (Openbox preferences manager)
obconf:
obconf: ObConf is a GTK+ tool to assist with the configuration of the
obconf: Openbox window manager.
obconf:
obconf: Homepage: http://tr.openmonkey.com/pages/obconf
obconf: Homepage: http://icculus.org/openbox/index.php/ObConf:About
obconf:
obconf:
obconf:
obconf:
obconf: