From 17bf96e255fce222669cab4f848cc1a1bf084046 Mon Sep 17 00:00:00 2001 From: slakmagik Date: Tue, 11 May 2010 22:24:31 +0200 Subject: misc/gcolor2: Updated for version 0.4 --- misc/gcolor2/doinst.sh | 4 ++++ misc/gcolor2/gcolor2.SlackBuild | 12 ++++++++++-- misc/gcolor2/gcolor2.desktop | 10 ++++++++++ misc/gcolor2/gcolor2.info | 2 +- 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 misc/gcolor2/doinst.sh create mode 100644 misc/gcolor2/gcolor2.desktop (limited to 'misc') diff --git a/misc/gcolor2/doinst.sh b/misc/gcolor2/doinst.sh new file mode 100644 index 0000000000..6af9811528 --- /dev/null +++ b/misc/gcolor2/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/misc/gcolor2/gcolor2.SlackBuild b/misc/gcolor2/gcolor2.SlackBuild index 862c11b7e7..bc7e364b8f 100644 --- a/misc/gcolor2/gcolor2.SlackBuild +++ b/misc/gcolor2/gcolor2.SlackBuild @@ -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 diff --git a/misc/gcolor2/gcolor2.desktop b/misc/gcolor2/gcolor2.desktop new file mode 100644 index 0000000000..20f47311aa --- /dev/null +++ b/misc/gcolor2/gcolor2.desktop @@ -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; diff --git a/misc/gcolor2/gcolor2.info b/misc/gcolor2/gcolor2.info index ac9457692d..f7c6216a84 100644 --- a/misc/gcolor2/gcolor2.info +++ b/misc/gcolor2/gcolor2.info @@ -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" -- cgit v1.2.3