summarylogtreecommitdiffstats
path: root/x3270.install
diff options
context:
space:
mode:
authorPhil Sidler2017-12-03 12:46:34 -0600
committerPhil Sidler2017-12-03 12:46:34 -0600
commita2f053ca0d092f005bef8053347b2e132e819a59 (patch)
treef6aa480e0489b6f12ed8f4693ab9f5d650cbc926 /x3270.install
downloadaur-a2f053ca0d092f005bef8053347b2e132e819a59.tar.gz
initial
Diffstat (limited to 'x3270.install')
-rw-r--r--x3270.install36
1 files changed, 36 insertions, 0 deletions
diff --git a/x3270.install b/x3270.install
new file mode 100644
index 000000000000..5b25ff098f32
--- /dev/null
+++ b/x3270.install
@@ -0,0 +1,36 @@
+# arg 1: the new package version
+post_install() {
+ /usr/bin/fc-cache
+ # the following is ineffective unless install is done in the foreground, locally
+ /usr/bin/xset fp+ /usr/share/fonts/3270 fp rehash
+ /bin/true
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+pre_upgrade() {
+ pre_remove $1
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
+
+# arg 1: the old package version
+pre_remove() {
+ # the following is ineffective unless uninstall is done in the foreground, locally
+ /usr/bin/xset fp- /usr/share/fonts/3270 fp rehash
+ /bin/true
+}
+
+# arg 1: the old package version
+post_remove() {
+ /usr/bin/fc-cache
+}
+
+op=$1
+shift
+$op $*
+