From 0abdec75e6c08aecb09a814b18b614ca4725357d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 15 Oct 2008 02:50:10 +0200 Subject: [PATCH] Added desktop-file-utils-0.15 template and its associated helper. --HG-- extra : convert_revision : 080e2c1e9930a480e88af722f91605a8a69c66cc --- dependencies/build-depends.db | Bin 20480 -> 20992 bytes helper-templates/update-desktopdb.sh | 14 ++++++++++++++ templates/desktop-file-utils.tmpl | 15 +++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 helper-templates/update-desktopdb.sh create mode 100755 templates/desktop-file-utils.tmpl diff --git a/dependencies/build-depends.db b/dependencies/build-depends.db index 1612089671d34629fce4cfc0ff2f3e0ece9af22c..7aa2d7e69f69244ad227a343228c8bec3442633b 100644 GIT binary patch delta 288 zcmZozz}T>aaRUdNum%GI0}}%SgB*hZ;|az!j1`OmljV(CCmIx(3o|e<$S^Q4Fr=gw zXP4v`=%!`nr0SNIWabnzq~~NN=^E)7TId-n)Uwo^`~rrI%;fx>{36}Vf#Uu@~l$n8nfgkE$8HP6uHyBqi c8Zf?@sCaQQ3%kqY6t;@VCTs?i@33hA05|DQE&u=k delta 133 zcmZoz!q~8YaRUdNHa`Oc0}}%Sg9?KQ!wJSUj1`O?jCUAJ7*ZHm7#UE(&9E@KWA26O^oGfGaV4?xvBqo;4JoYTSoKg%H bj24U&7z-vV8Z}Qem@|2U6w78C-y=)_eIg)4 diff --git a/helper-templates/update-desktopdb.sh b/helper-templates/update-desktopdb.sh new file mode 100644 index 00000000000..05a25694fb3 --- /dev/null +++ b/helper-templates/update-desktopdb.sh @@ -0,0 +1,14 @@ +# +# This helper update's desktop-file-utils desktop database for any +# package that requests this operation. +# + +update_desktopdb_cmd=$XBPS_MASTERDIR/bin/update-desktop-database +desktopdb_dir=$XBPS_MASTERDIR/share/applications + +if [ -x $update_desktopdb_cmd -a -d $desktopdb_dir ]; then + $update_desktopdb_cmd $desktopdb_dir && \ + echo "=> Updated desktop database directory." +fi + +unset update_desktopdb_cmd desktopdb_dir diff --git a/templates/desktop-file-utils.tmpl b/templates/desktop-file-utils.tmpl new file mode 100755 index 00000000000..f55e71aee29 --- /dev/null +++ b/templates/desktop-file-utils.tmpl @@ -0,0 +1,15 @@ +# Template build file for 'desktop-file-utils'. +pkgname=desktop-file-utils +version=0.15 +distfiles=" +http://freedesktop.org/software/desktop-file-utils/releases/$pkgname-$version@.tar.gz" +build_style=gnu_configure +make_cmd="$XBPS_MASTERDIR/bin/gmake" +short_desc="Utilities to manage desktop entries" +maintainer="Juan RP " +checksum=ab6fc0bc116d6ec338ef2699b96d57698d4a1d03 +long_desc=" + desktop-file-utils contains a couple of command line utilities for working + with desktop entries and the applications database. More specifically, + it contains the update-desktop-database utility, used to rebuild the database + that connects MIME types to applications."