summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgconf.pkg/postinst6
-rw-r--r--pkgconf.pkg/prerm5
2 files changed, 11 insertions, 0 deletions
diff --git a/pkgconf.pkg/postinst b/pkgconf.pkg/postinst
new file mode 100644
index 0000000..7d4fba5
--- /dev/null
+++ b/pkgconf.pkg/postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xconfigure' ]; then
+ update-alternatives --install /usr/bin/pkg-config pkg-config \
+ /usr/bin/pkgconf 10
+fi
diff --git a/pkgconf.pkg/prerm b/pkgconf.pkg/prerm
new file mode 100644
index 0000000..6594970
--- /dev/null
+++ b/pkgconf.pkg/prerm
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xremove' ]; then
+ update-alternatives --remove pkg-config /usr/bin/pkgconf
+fi