aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/gcolor2/doinst.sh4
-rw-r--r--misc/gcolor2/gcolor2.SlackBuild12
-rw-r--r--misc/gcolor2/gcolor2.desktop10
-rw-r--r--misc/gcolor2/gcolor2.info2
4 files changed, 25 insertions, 3 deletions
diff --git a/misc/gcolor2/doinst.sh b/misc/gcolor2/doinst.sh
new file mode 100644
index 0000000000000..6af9811528b00
--- /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 862c11b7e7e51..bc7e364b8f120 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 0000000000000..20f47311aa874
--- /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 ac9457692d830..f7c6216a84131 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"