diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-03-16 17:59:31 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-03-16 17:59:31 +0100 |
commit | 4b3da4f08d06e1000aa2ab7fdeec96941d9ffd16 (patch) | |
tree | ae0f4c0fd34125a1201e97bd97c28217adbfde61 /screen/screen.install | |
parent | 318f244d6d54960fb23f00e48e4a76c6e44a5248 (diff) | |
download | aur-packages-4b3da4f08d06e1000aa2ab7fdeec96941d9ffd16.tar.gz aur-packages-4b3da4f08d06e1000aa2ab7fdeec96941d9ffd16.tar.xz |
add screen with widescreen patch
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'screen/screen.install')
-rw-r--r-- | screen/screen.install | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/screen/screen.install b/screen/screen.install new file mode 100644 index 0000000..3ef5757 --- /dev/null +++ b/screen/screen.install @@ -0,0 +1,42 @@ +infodir=/usr/share/info +filelist=(screen.info screen.info-1 screen.info-2 screen.info-3 screen.info-4 screen.info-5) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +pre_upgrade() { + compiled="/usr/share/terminfo/s/screen-256color" + if [ -e $compiled ]; then + if pacman -Qo $compiled 2>&1 | grep "No package owns" >/dev/null; then + echo -n "removing compiled terminfo..." + rm -f $compiled + echo "done." + fi + fi + compiled="/usr/share/terminfo/s/screen-256color-bce" + if [ -e $compiled ]; then + if pacman -Qo $compiled 2>&1 | grep "No package owns" >/dev/null; then + echo -n "removing compiled terminfo..." + rm -f $compiled + echo "done." + fi + fi +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + pre_upgrade $* + + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + |