Mercurial > vanilla
annotate graphics/gdk-pixbuf/gdk-pixbuf-post.sh @ 602:705beca72ba0
vanilla: fix many meson based builds
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 13 Jul 2019 18:04:46 +0200 |
parents | b1690d766bdb |
children | 00b288a5599a |
rev | line source |
---|---|
417
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
1 #!/bin/sh |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
2 # |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
4 # |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
5 # Permission to use, copy, modify, and/or distribute this software for any |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
6 # purpose with or without fee is hereby granted, provided that the above |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
7 # copyright notice and this permission notice appear in all copies. |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
8 # |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
16 # |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
17 |
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
18 if [ "$1" = "install" ]; then |
523
b1690d766bdb
graphics: use new FHS
David Demelier <markand@malikania.fr>
parents:
417
diff
changeset
|
19 chroot $DESTDIR /bin/gdk-pixbuf-query-loaders --update-cache |
417
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
20 elif [ "$1" = "uninstall" ]; then |
523
b1690d766bdb
graphics: use new FHS
David Demelier <markand@malikania.fr>
parents:
417
diff
changeset
|
21 rm -f $DESTDIR/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache |
417
5f4eefa4909d
graphics/gdk-pixbuf: add post-install script
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
22 fi |