diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-12 02:32:42 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-12 02:32:42 (EDT) |
commit | 996d0eb313f672fe4644cafe73eaca9b8c3fe32b (patch) | |
tree | ee3ced808ad0226432dfe7444039e6716847258c | |
parent | 7af676acce3a022b0063c9473f2433305a1b0914 (diff) |
pkgconf: Add maintainer scripts.
-rw-r--r-- | pkgconf.pkg/postinst | 6 | ||||
-rw-r--r-- | pkgconf.pkg/prerm | 5 |
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 |