# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=screen pkgver=4.3.1 pkgrel=0 pkgdesc="A window manager that multiplexes a physical terminal" url="http://ftp.gnu.org/gnu/screen/" arch="all" license="GPL3+" depends="" makedepends="ncurses-dev ncurses" install="" subpackages="$pkgname-doc" source="http://ftp.gnu.org/gnu/screen/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/screen-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install || return 1 # remove suid root find "$pkgdir" -type f -perm -u+s -print0 \ | xargs -0 chmod -s || return 1 install -Dm644 etc/etcscreenrc "$pkgdir"/etc/screenrc || return 1 install -Dm644 etc/screenrc "$pkgdir"/etc/skel/.screenrc || return 1 } md5sums="5bb3b0ff2674e29378c31ad3411170ad screen-4.3.1.tar.gz" sha256sums="fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63 screen-4.3.1.tar.gz" sha512sums="8e8a25b23330a7d8e00fc9e6cc430f0eb3937ccf4183efbd6fd24e4dc04cc09b3acae45bfc24892faee433b18fa79b1cfe0211fd75c0d74ecf908f916bf774aa screen-4.3.1.tar.gz"