archrelease: copy trunk to extra-x86_64
[arch-packages.git] / screen / trunk / PKGBUILD
blob1d3f086b885ac6d2c901b19cc7b275907e92423f
1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Committer: dorphell <dorphell@gmx.net>
5 pkgname=screen
6 pkgver=4.8.0
7 pkgrel=3
8 pkgdesc='Full-screen window manager that multiplexes a physical terminal'
9 url='https://www.gnu.org/software/screen/'
10 arch=('x86_64')
11 license=('GPL')
12 depends=('ncurses' 'pam')
13 validpgpkeys=('2EE59A5D0C50167B5535BBF1B708A383C53EF3A4'
14               '71AA09D9E8870FDB0AA7B61E21F968DEF747ABD7')
15 source=("https://ftp.gnu.org/gnu/screen/screen-${pkgver}.tar.gz"{,.sig}
16         'CVE-2021-26937.patch'
17         'tmpfiles.d'
18         'pam.d')
19 sha256sums=('6e11b13d8489925fde25dfb0935bf6ed71f9eb47eff233a181e078fde5655aa1'
20             'SKIP'
21             '4ccc4d28da0f994aad165eb06119ecad7112cbb1401d73789af1b6c53e4819f5'
22             '1f33ce4faca7bd05dd80403411af31e682d5d23e79558e884ae5a35f1dd96223'
23             '971c25929ea97422c09e10679ab98e9e6c59295aae1a4a9970909d2206e23090')
25 backup=('etc/screenrc' 'etc/pam.d/screen')
26 options=('!makeflags')
28 _ptygroup=5 #the UID of our PTY/TTY group
30 prepare() {
31         cd "${srcdir}/${pkgname}-${pkgver}"
32         patch -Np1 -i ../CVE-2021-26937.patch
35 build() {
36         cd "${srcdir}/${pkgname}-${pkgver}"
38         ./configure \
39                 --prefix=/usr \
40                 --mandir=/usr/share/man \
41                 --infodir=/usr/share/info \
42                 --enable-colors256 \
43                 --enable-pam \
44                 --enable-rxvt_osc \
45                 --enable-telnet \
46                 --with-pty-group=$_ptygroup \
47                 --with-socket-dir=/run/screens \
48                 --with-sys-screenrc=/etc/screenrc \
50         make
53 package() {
54         cd "${srcdir}/${pkgname}-${pkgver}"
55         make DESTDIR="${pkgdir}" install
57         install -Dm644 ../pam.d "${pkgdir}"/etc/pam.d/screen
58         install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/screen.conf
60         install -Dm644 etc/etcscreenrc "${pkgdir}"/etc/screenrc
61         install -Dm644 etc/screenrc "${pkgdir}"/etc/skel/.screenrc