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:
parent
cbc4268ff4
commit
9cbaaea21b
|
@ -1,9 +1,15 @@
|
|||
#!/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
|
||||
#
|
||||
# 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-install/post-remove]
|
||||
# $TARGET = [post-remove]
|
||||
# $PKGNAME
|
||||
# $VERSION
|
||||
# $UPDATE = [yes/no]
|
||||
|
@ -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
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'xbps-triggers'
|
||||
pkgname=xbps-triggers
|
||||
version=0.105
|
||||
version=0.106
|
||||
revision=1
|
||||
noarch=yes
|
||||
bootstrap=yes
|
||||
|
|
Loading…
Reference in New Issue