Commit 6af9683b authored by abveritas's avatar abveritas

Adding screen 4.0.3

parent 7913f519
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# from AUR package http://aur.archlinux.org/packages.php?ID=1644
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=screen
pkgver=4.0.3
pkgrel=1
_ptygroup=5 #the UID of our PTY/TTY group
pkgdesc="Full-screen window manager that multiplexes a physical terminal"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/screen/"
license=('GPL')
depends=('ncurses' 'pam')
backup=('etc/screenrc' 'etc/pam.d/screen')
options=('!makeflags')
install=screen.install
source=(ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-${pkgver}.tar.gz \
screen.pam)
md5sums=('8506fd205028a96c741e4037de6e3c42' '74f7919d7b65436cc2ea5341fa8ca374')
build() {
export LDFLAGS="${LDFLAGS} -Wl,--as-needed"
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr --enable-pam \
--with-sys-screenrc=/etc/screenrc --enable-colors256 \
--enable-rxvt_osc --with-pty-group=$_ptygroup \
--mandir=/usr/share/man --infodir=/usr/share/info
make || return 1
make DESTDIR=${pkgdir} install || return 1
install -Dm644 ${srcdir}/screen.pam ${pkgdir}/etc/pam.d/screen
install -Dm644 etc/completer.zsh ${pkgdir}/usr/share/zsh/site-functions/screen
install -Dm644 etc/etcscreenrc ${pkgdir}/etc/screenrc
install -Dm644 etc/screenrc ${pkgdir}/etc/skel/.screenrc
rm ${pkgdir}/usr/share/info/dir
gzip -9 ${pkgdir}/usr/share/info/*
}
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
}
auth required pam_unix.so
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment