upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / screen / repos / community-x86_64 / PKGBUILD
blob356dab448c45704ee7f9b88f1e83fbbec2c43506
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.9.0
7 pkgrel=1
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               'B4560FD8C9F2DE3BE308EBA3933AD21886F69FBF')
16 source=("https://ftp.gnu.org/gnu/screen/screen-${pkgver}.tar.gz"{,.sig}
17         'tmpfiles.d'
18         'pam.d')
19 sha256sums=('f9335281bb4d1538ed078df78a20c2f39d3af9a4e91c57d084271e0289c730f4'
20             'SKIP'
21             '1f33ce4faca7bd05dd80403411af31e682d5d23e79558e884ae5a35f1dd96223'
22             '971c25929ea97422c09e10679ab98e9e6c59295aae1a4a9970909d2206e23090')
24 backup=('etc/screenrc' 'etc/pam.d/screen')
25 options=('!makeflags')
27 _ptygroup=5 #the UID of our PTY/TTY group
29 prepare() {
30   cd ${pkgname}-${pkgver}
31   NOCONFIGURE=1 ./autogen.sh
34 build() {
35   cd ${pkgname}-${pkgver}
37   ./configure \
38     --prefix=/usr \
39     --mandir=/usr/share/man \
40     --infodir=/usr/share/info \
41     --enable-colors256 \
42     --enable-pam \
43     --enable-rxvt_osc \
44     --enable-telnet \
45     --with-pty-group=$_ptygroup \
46     --with-socket-dir=/run/screens \
47     --with-sys-screenrc=/etc/screenrc \
48   make
51 package() {
52   cd ${pkgname}-${pkgver}
53   make DESTDIR="${pkgdir}" install
55   install -Dm644 ../pam.d "${pkgdir}"/etc/pam.d/screen
56   install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/screen.conf
58   install -Dm644 etc/etcscreenrc "${pkgdir}"/etc/screenrc
59   install -Dm644 etc/screenrc "${pkgdir}"/etc/skel/.screenrc