diff options
-rwxr-xr-x | build | 4 | ||||
-rw-r--r-- | gettext-tiny.pkg/postinst | 8 | ||||
-rw-r--r-- | gettext-tiny.pkg/prerm | 7 |
3 files changed, 19 insertions, 0 deletions
@@ -10,6 +10,10 @@ build: install: build oh-autoinstall -- prefix=/usr + # u-a them utils + set -e; for util in autopoint msgfmt msgmerge xgettext; do \ + mv dest/usr/bin/$${util} dest/usr/bin/$${util}.tiny; \ + done # Current and planned standard C libraries provide libintl. rm -fv dest/usr/include/libintl.h rm -fv dest/usr/lib/libintl.a diff --git a/gettext-tiny.pkg/postinst b/gettext-tiny.pkg/postinst new file mode 100644 index 0000000..b13ccb1 --- /dev/null +++ b/gettext-tiny.pkg/postinst @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ x"${1}" = x'configure' ]; then + for link in autopoint msgfmt msgmerge xgettext; do + update-alternatives --install "/usr/bin/${link}" "${link}" \ + "/usr/bin/${link}.tiny" 10 + done +fi diff --git a/gettext-tiny.pkg/prerm b/gettext-tiny.pkg/prerm new file mode 100644 index 0000000..f3213c2 --- /dev/null +++ b/gettext-tiny.pkg/prerm @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ x"${1}" = x'remove' ]; then + for link in autopoint msgfmt msgmerge xgettext; do + update-alternatives --remove "${link}" "/usr/bin/${link}.tiny" + done +fi |