misc/gcolor2: Updated for version 0.4

This commit is contained in:
slakmagik 2010-05-11 22:24:31 +02:00 committed by Michiel van Wessem
parent 5684cf8ecb
commit 17bf96e255
4 changed files with 25 additions and 3 deletions

4
misc/gcolor2/doinst.sh Normal file
View file

@ -0,0 +1,4 @@
if [ -x usr/bin/update-desktop-database ]; then
usr/bin/update-desktop-database -q usr/share/applications
fi

View file

@ -7,7 +7,7 @@
PRGNAM=gcolor2
VERSION=0.4
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@ -40,7 +40,11 @@ find . \
# can't find without this patch.
patch -p1 < $CWD/rgb.patch
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr
make
make DESTDIR=$PKG install-strip
@ -49,8 +53,12 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [ACI]* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/share/applications
cat $CWD/gcolor2.desktop > $PKG/usr/share/applications/gcolor2.desktop
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

@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=gcolor2
GenericName=Color Chooser
Comment=Pick colors via numeric input, color wheel, or named colors
Icon=/usr/share/pixmaps/gcolor2/icon.png
Exec=gcolor2
Terminal=false
Categories=Utility;GTK;

View file

@ -5,4 +5,4 @@ DOWNLOAD="http://downloads.sourceforge.net/gcolor2/gcolor2-0.4.tar.bz2"
MD5SUM="223a126b8a87234d1552be4be4140789"
MAINTAINER="slakmagik"
EMAIL="jsun@freeshell.org"
APPROVED="David Somero"
APPROVED="Michiel"