void-packages/srcpkgs/screen/template

34 lines
1.0 KiB
Bash

# Template file for 'screen'
pkgname=screen
version=5.0.0
revision=2
build_style=gnu-configure
configure_args="--enable-telnet --enable-utmp --enable-socket-dir=/run/screens"
makedepends="libutempter-devel ncurses-devel pam-devel"
conf_files="/etc/screenrc /etc/skel/.screenrc"
short_desc="GNU screen manager with VT100/ANSI terminal emulation"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org/s/screen/"
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=f04a39d00a0e5c7c86a55338808903082ad5df4d73df1a2fd3425976aed94971
make_check=no # check is broken in 5.0.0
build_options="multiuser"
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
post_install() {
vinstall etc/etcscreenrc 0644 etc screenrc
vinstall etc/screenrc 0644 etc/skel .screenrc
vinstall ${FILESDIR}/screen 0644 etc/pam.d
if [ "$build_option_multiuser" ]; then
chmod 4755 ${DESTDIR}/usr/bin/screen-${version}
fi
vinstall $FILESDIR/20-screen.sh 644 etc/runit/core-services
}