xbps-triggers: rewrite pango-modules trigger

see fa6dfc688c

the code isn't even built much less in the codebase so this will just
no-op eternally
This commit is contained in:
maxice8 2018-08-19 05:38:12 -03:00
parent cbc4268ff4
commit 9cbaaea21b
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 15 additions and 19 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.105
version=0.106
revision=1
noarch=yes
bootstrap=yes