Mercurial > vanilla
changeset 417:5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 04 Apr 2019 12:44:09 +0200 |
parents | 3fcc2398fbac |
children | aa460c9d7031 |
files | Templates/gdk-pixbuf-post.sh graphics/gdk-pixbuf/gdk-pixbuf-post.sh |
diffstat | 2 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Templates/gdk-pixbuf-post.sh Thu Apr 04 12:44:09 2019 +0200 @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Copyright (c) 2019 FirstName LastName <mailaddress> +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +/usr/bin/gdk-pixbuf-query-loaders --update-cache
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphics/gdk-pixbuf/gdk-pixbuf-post.sh Thu Apr 04 12:44:09 2019 +0200 @@ -0,0 +1,22 @@ +#!/bin/sh +# +# Copyright (c) 2019 David Demelier <markand@malikania.fr> +# +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +# + +if [ "$1" = "install" ]; then + chroot $DESTDIR /usr/bin/gdk-pixbuf-query-loaders --update-cache +elif [ "$1" = "uninstall" ]; then + rm -f $DESTDIR/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +fi