1 #Maintainer: lolilolicon <lolilolicon#gmail#com>
3 pkgname=screen-firstline
7 _ptygroup=5 #the UID of our PTY/TTY group
8 pkgdesc="Full-screen terminal window multiplexer, with debian and hardstatus firstline patches"
10 url="http://www.gnu.org/software/screen/"
12 depends=('ncurses' 'pam')
13 backup=('etc/screenrc' 'etc/pam.d/screen')
14 options=('!makeflags')
15 install=screen.install
16 source=(ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-${pkgver}.tar.gz \
18 screen.patches.debian.tar.gz
19 hardstatusfirstline.patch)
20 provides=(screen=4.0.3)
21 conflicts=(screen screen-git screen-vs)
24 export LDFLAGS="${LDFLAGS} -Wl,--as-needed"
26 cd ${srcdir}/${_pkgname}-${pkgver}
28 patch -p1 < ../01CVS.patch || return 1
29 patch -p1 < ../01configure_fix_alpha_vsprintf.patch || return 1
30 patch -p1 < ../02configure_use_ncursesw.patch || return 1
31 patch -p1 < ../03fully_expand_screenencodings.patch || return 1
32 patch -p1 < ../04AUTOCONF.patch || return 1
33 patch -p1 < ../05fix_osdef_include.patch || return 1
34 patch -p1 < ../10norootpassword.patch || return 1
35 patch -p1 < ../11replace_doc_paths.patch || return 1
36 patch -p1 < ../13split_info_files.patch || return 1
37 patch -p1 < ../14size_matters.patch || return 1
38 patch -p1 < ../15manpage_typos.patch || return 1
39 patch -p1 < ../16fix_gcc_warnings.patch || return 1
40 patch -p1 < ../16fix_gcc_warnings_II.patch || return 1
41 patch -p1 < ../17manpage_sessionname_warning.patch || return 1
42 patch -p1 < ../18manpage_maxwin_limit.patch || return 1
43 patch -p1 < ../19flowcontrol_lockup.patch || return 1
44 patch -p1 < ../20defmonitor.patch || return 1
45 patch -p1 < ../21manpage_nethack_activation.patch || return 1
46 patch -p1 < ../22exchange_file_mode.patch || return 1
47 patch -p1 < ../23exitcode_q_ls.patch || return 1
48 patch -p1 < ../24option_parser.patch || return 1
49 patch -p1 < ../25allow_symlink_sockdir.patch || return 1
50 patch -p1 < ../26source_encoding.patch || return 1
51 patch -p1 < ../27doc_sty_noenvpassing.patch || return 1
52 patch -p1 < ../28blankerprg_callsemantics.patch || return 1
53 patch -p1 < ../30fix_fsf_address.patch || return 1
54 patch -p1 < ../40cjk_eastasian.patch || return 1
55 patch -p1 < ../45suppress_remap.patch || return 1
56 patch -p1 < ../50EXP_tilde_expansion.patch || return 1
57 patch -p1 < ../51EXP_session_creation_time.patch || return 1
58 patch -p1 < ../hardstatusfirstline.patch || return 1
60 ./configure --prefix=/usr --enable-pam \
61 --with-sys-screenrc=/etc/screenrc --enable-colors256 \
62 --enable-rxvt_osc --with-pty-group=$_ptygroup \
63 --mandir=/usr/share/man --infodir=/usr/share/info
65 make DESTDIR=${pkgdir} install || return 1
66 install -Dm644 ${srcdir}/screen.pam ${pkgdir}/etc/pam.d/screen
68 install -Dm644 etc/completer.zsh ${pkgdir}/usr/share/zsh/site-functions/screen
69 install -Dm644 etc/etcscreenrc ${pkgdir}/etc/screenrc
70 install -Dm644 etc/screenrc ${pkgdir}/etc/skel/.screenrc
72 rm ${pkgdir}/usr/share/info/dir
73 gzip -9 ${pkgdir}/usr/share/info/*
76 md5sums=('8506fd205028a96c741e4037de6e3c42'
77 '74f7919d7b65436cc2ea5341fa8ca374'
78 'e33d792fa82ed04cac93d8c748f34079'
79 '75e1866573dd05fcd714c3410e54d1b8')