# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=screen pkgver=4.5.0 pkgrel=0 pkgdesc="A window manager that multiplexes a physical terminal" url="http://ftp.gnu.org/gnu/screen/" arch="all" license="GPL3+" makedepends="ncurses-dev ncurses" subpackages="$pkgname-doc" source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" 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="a32105a91359afab1a4349209a028e31 screen-4.5.0.tar.gz" sha256sums="01c3a7c362185f35d6a95dff52d64337076496acd034d717de3c263500cfefb0 screen-4.5.0.tar.gz" sha512sums="b2705ed9604355d4153d7902f820af6131a1f2387650f5c6efeda7acf543aad48e8603c26d7c6e74213c8eece994d5d9bb0d114bc19c8d8f3d8e99c00ea4a484 screen-4.5.0.tar.gz"