# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=screen pkgver=4.3.1 pkgrel=1 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 CVE-2015-6806.patch" _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 5fb8b0a58ef4a2a75d7dddb453994cce CVE-2015-6806.patch" sha256sums="fa4049f8aee283de62e283d427f2cfd35d6c369b40f7f45f947dbfd915699d63 screen-4.3.1.tar.gz 9383316bce6ce479dfd3eca238956e321b80885bd0e720d47f1f37693334b9cd CVE-2015-6806.patch" sha512sums="8e8a25b23330a7d8e00fc9e6cc430f0eb3937ccf4183efbd6fd24e4dc04cc09b3acae45bfc24892faee433b18fa79b1cfe0211fd75c0d74ecf908f916bf774aa screen-4.3.1.tar.gz 7ee87aaf5e10a60b37558f5bea85718703b2b95a4a3c43c0cd4c6f48ddd7bf1c5c582017a41681d8f9243049009c9f43678f37b826c188add501168e289ce2f1 CVE-2015-6806.patch"