# Template file for 'screen'
pkgname=screen
version=4.0.3
revision=8
build_style=gnu-configure
configure_args="--with-sys-screenrc=/etc/screenrc -enable-pam --enable-colors256
 --enable-locale -with-socket-dir=/run/screens --with-pty-group=5"
makedepends="pam-devel ncurses-devel"
short_desc="The GNU screen utility"
maintainer="davehome <davehome@redthumb.info.tm>"
homepage="http://www.gnu.org/s/screen/"
license="GPL-2"
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
checksum=78f0d5b1496084a5902586304d4a73954b2bfe33ea13edceecf21615c39e6c77
long_desc="
 Screen is a full-screen window manager that multiplexes a physical terminal
 between several processes, typically interactive shells. Each virtual
 terminal provides the functions of the DEC VT100 terminal and, in addition,
 several control functions from the ANSI X3.64 (ISO 6429) and ISO 2022
 standards (e.g., insert/delete line and support for multiple character sets).
 There is a scrollback history buffer for each virtual terminal and a
 copy-and-paste mechanism that allows the user to move text regions between
 windows. When screen is called, it creates a single window with a shell in it
 (or the specified command) and then gets out of your way so that you can use
 the program as you normally would. Then, at any time, you can create new
 (full-screen) windows with other programs in them (including more shells),
 kill the current window, view a list of the active windows, turn output
 logging on and off, copy text between windows, view the scrollback history,
 switch between windows, etc. All windows run their programs completely
 independent of each other. Programs continue to run when their window is
 currently not visible and even when the whole screen session is detached
 from the users terminal."

post_install() {
	vinstall etc/screenrc 0644 etc
	vinstall etc/etcscreenrc 0644 etc/skel .screenrc
}

screen_package() {
	conf_files="/etc/screenrc /etc/skel/.screenrc"
	pkg_install() {
		vmove all
	}
}
