mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 07:52:55 +02:00
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
2 changed files with 15 additions and 19 deletions
|
@ -1,12 +1,18 @@
|
||||||
#!/bin/sh
|
#!/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]
|
# This reduced version just removes the pango.modules file if it exists during
|
||||||
# $TARGET = [post-install/post-remove]
|
# the removal of the 'pango' package
|
||||||
# $PKGNAME
|
#
|
||||||
# $VERSION
|
# Arguments: $ACTION = [run/targets]
|
||||||
# $UPDATE = [yes/no]
|
# $TARGET = [post-remove]
|
||||||
|
# $PKGNAME
|
||||||
|
# $VERSION
|
||||||
|
# $UPDATE = [yes/no]
|
||||||
#
|
#
|
||||||
ACTION="$1"
|
ACTION="$1"
|
||||||
TARGET="$2"
|
TARGET="$2"
|
||||||
|
@ -16,12 +22,11 @@ UPDATE="$5"
|
||||||
|
|
||||||
export PATH="$PATH:/usr/local/bin"
|
export PATH="$PATH:/usr/local/bin"
|
||||||
|
|
||||||
pango_bin=usr/bin/pango-querymodules
|
|
||||||
pango_modules=etc/pango/pango.modules
|
pango_modules=etc/pango/pango.modules
|
||||||
|
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
targets)
|
targets)
|
||||||
echo "post-install post-remove"
|
echo "post-remove"
|
||||||
;;
|
;;
|
||||||
run)
|
run)
|
||||||
if [ "$TARGET" = "post-remove" -a "${PKGNAME}" = "pango" ]; then
|
if [ "$TARGET" = "post-remove" -a "${PKGNAME}" = "pango" ]; then
|
||||||
|
@ -31,18 +36,9 @@ run)
|
||||||
fi
|
fi
|
||||||
break
|
break
|
||||||
fi
|
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
|
esac
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-triggers'
|
# Template file for 'xbps-triggers'
|
||||||
pkgname=xbps-triggers
|
pkgname=xbps-triggers
|
||||||
version=0.105
|
version=0.106
|
||||||
revision=1
|
revision=1
|
||||||
noarch=yes
|
noarch=yes
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
|
|
Loading…
Add table
Reference in a new issue