summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2015-11-18 23:21:37 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-11-18 23:23:03 +0700
commit119ea43024bfe56a3a97a11d5f3d700caa3e2f36 (patch)
treebf4bbbd5bb4e99fefd233bcdc57989754975d4f8
parent178a008a24dc780a8852b87b180487d6f3086a14 (diff)
downloadslackbuilds-119ea43024bfe56a3a97a11d5f3d700caa3e2f36.tar.gz
system/driconf: Added .desktop file.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/driconf/driconf.SlackBuild7
-rw-r--r--system/driconf/driconf.desktop9
2 files changed, 16 insertions, 0 deletions
diff --git a/system/driconf/driconf.SlackBuild b/system/driconf/driconf.SlackBuild
index 1768dac18a..d344b866ff 100644
--- a/system/driconf/driconf.SlackBuild
+++ b/system/driconf/driconf.SlackBuild
@@ -21,6 +21,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Thanks to James Powell for the .desktop file.
+
PRGNAM=driconf
VERSION=${VERSION:-0.9.1}
BUILD=${BUILD:-1}
@@ -72,6 +74,11 @@ cat $CWD/driconf-0.9.1-2.diff | patch --verbose -p1
python setup.py install --root=$PKG
+mkdir -p $PKG/usr/share/{applications,driconf}
+ cp -a $CWD/driconf.desktop $PKG/usr/share/applications/driconf.desktop
+ cp -a driconf-icon.png $PKG/usr/share/applications/driconf-icon.png
+
+
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/system/driconf/driconf.desktop b/system/driconf/driconf.desktop
new file mode 100644
index 0000000000..763507510c
--- /dev/null
+++ b/system/driconf/driconf.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=3D Acceleration
+Comment=Change 3D Acceleration options
+Exec=driconf
+Icon=/usr/share/driconf/driconf-icon.png
+Type=Application
+Categories=GNOME;Application;Settings;AdvancedSettings;
+StartupNotify=true