void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

gio-modules (595B)


      1#!/bin/sh
      2#
      3# Updates GLib GIO module cache with gio-querymodules.
      4#
      5# Arguments:	$ACTION = [run/targets]
      6#		$TARGET = [post-install/post-remove]
      7#		$PKGNAME
      8#		$VERSION
      9#		$UPDATE = [yes/no]
     10#
     11ACTION="$1"
     12TARGET="$2"
     13PKGNAME="$3"
     14VERSION="$4"
     15UPDATE="$5"
     16
     17gioquery=usr/bin/gio-querymodules
     18giocachedir=usr/lib/gio/modules
     19
     20case "$ACTION" in
     21targets)
     22	echo "post-install post-remove"
     23	;;
     24run)
     25	case "$TARGET" in
     26	post-*)
     27		if [ -x ${gioquery} -a -d ${giocachedir} ]; then
     28			echo "Updating GLib GIO modules cache..."
     29			${gioquery} ${giocachedir}
     30		fi
     31		;;
     32	esac
     33	;;
     34*)
     35	exit 1
     36	;;
     37esac
     38
     39exit 0