diff --git a/srcpkgs/xbps-triggers/files/pango-modules b/srcpkgs/xbps-triggers/files/pango-modules index 608e9716754..b4c52d6e31d 100755 --- a/srcpkgs/xbps-triggers/files/pango-modules +++ b/srcpkgs/xbps-triggers/files/pango-modules @@ -1,12 +1,18 @@ #!/bin/sh # -# Updates the list of pango modules with pango-querymodules(1). +# This is a reduced version for the pango-modules trigger which is now +# obsolete upstream. +# The pango-modulesquery binary was removed from upstream and isn't provided +# anymore by our 'pango' package # -# Arguments: $ACTION = [run/targets] -# $TARGET = [post-install/post-remove] -# $PKGNAME -# $VERSION -# $UPDATE = [yes/no] +# This reduced version just removes the pango.modules file if it exists during +# the removal of the 'pango' package +# +# Arguments: $ACTION = [run/targets] +# $TARGET = [post-remove] +# $PKGNAME +# $VERSION +# $UPDATE = [yes/no] # ACTION="$1" TARGET="$2" @@ -16,12 +22,11 @@ UPDATE="$5" export PATH="$PATH:/usr/local/bin" -pango_bin=usr/bin/pango-querymodules pango_modules=etc/pango/pango.modules case "$ACTION" in targets) - echo "post-install post-remove" + echo "post-remove" ;; run) if [ "$TARGET" = "post-remove" -a "${PKGNAME}" = "pango" ]; then @@ -31,18 +36,9 @@ run) fi break fi - case "$TARGET" in - post-*) - if [ -x ${pango_bin} ]; then - echo "Updating pango modules file..." - mkdir -p etc/pango - ${pango_bin} > ${pango_modules} - fi - ;; - esac ;; *) - exit 1 + exit 0 ;; esac diff --git a/srcpkgs/xbps-triggers/template b/srcpkgs/xbps-triggers/template index cc173798d5a..5383935bd34 100644 --- a/srcpkgs/xbps-triggers/template +++ b/srcpkgs/xbps-triggers/template @@ -1,6 +1,6 @@ # Template file for 'xbps-triggers' pkgname=xbps-triggers -version=0.105 +version=0.106 revision=1 noarch=yes bootstrap=yes