|
| 1 | +# Maintainer: Tiara Rodney <tiara@byteb4rb1e.me> |
| 2 | +# Ported from the Cygwin package by Andrew Schulman. |
| 3 | +# Upstream Cygwin recipe: https://cygwin.com/cgit/cygwin-packages/screen/ |
| 4 | + |
| 5 | +pkgname=screen |
| 6 | +pkgver=5.0.1 |
| 7 | +pkgrel=1 |
| 8 | +pkgdesc='Terminal window manager that multiplexes a physical terminal between several processes' |
| 9 | +arch=('x86_64' 'i686') |
| 10 | +url='https://www.gnu.org/software/screen/' |
| 11 | +msys2_repository_url='https://git.savannah.gnu.org/cgit/screen.git' |
| 12 | +msys2_references=( |
| 13 | + 'anitya: 4772' |
| 14 | + 'cpe: cpe:/a:gnu:screen' |
| 15 | +) |
| 16 | +license=('spdx:GPL-3.0-only') |
| 17 | +depends=('libxcrypt' 'ncurses') |
| 18 | +makedepends=('libxcrypt-devel' 'ncurses-devel' 'gcc' 'texinfo') |
| 19 | +backup=('etc/screenrc') |
| 20 | +source=("https://ftp.gnu.org/gnu/screen/${pkgname}-${pkgver}.tar.gz" |
| 21 | + 'colortest.sh' |
| 22 | + 'cygwin-auth.patch' |
| 23 | + 'etcscreenrc.patch' |
| 24 | + 'install-exe.patch' |
| 25 | + 'peercred.patch' |
| 26 | + 'texinfo.patch' |
| 27 | + 'TIOCCONS.patch') |
| 28 | +sha256sums=('2dae36f4db379ffcd14b691596ba6ec18ac3a9e22bc47ac239789ab58409869d' |
| 29 | + 'SKIP' |
| 30 | + 'SKIP' |
| 31 | + 'SKIP' |
| 32 | + 'SKIP' |
| 33 | + 'SKIP' |
| 34 | + 'SKIP' |
| 35 | + 'SKIP') |
| 36 | + |
| 37 | +# The 5.0.1 tarball contains a symlink screen-5.0.1/FAQ -> doc/FAQ. Without |
| 38 | +# admin / Developer Mode on Windows, bsdtar fails while creating that symlink |
| 39 | +# and makepkg aborts extraction. |
| 40 | +noextract=("${pkgname}-${pkgver}.tar.gz") |
| 41 | + |
| 42 | +prepare() { |
| 43 | + cd "${srcdir}" |
| 44 | + MSYS=winsymlinks:lnk tar -xzf "${pkgname}-${pkgver}.tar.gz" |
| 45 | + cd "${pkgname}-${pkgver}" |
| 46 | + # Cygwin patches were generated against cygport tree where source |
| 47 | + # lives under src/screen-5.0.0/... twostill carry prefix need, hence need |
| 48 | + # -p2; the rest were regenerated with -p1-style headers upstream. |
| 49 | + patch -p2 -i "${srcdir}/cygwin-auth.patch" |
| 50 | + patch -p2 -i "${srcdir}/TIOCCONS.patch" |
| 51 | + patch -p1 -i "${srcdir}/peercred.patch" |
| 52 | + patch -p1 -i "${srcdir}/install-exe.patch" |
| 53 | + patch -p1 -i "${srcdir}/etcscreenrc.patch" |
| 54 | + patch -p1 -i "${srcdir}/texinfo.patch" |
| 55 | +} |
| 56 | + |
| 57 | +build() { |
| 58 | + cd "${srcdir}/${pkgname}-${pkgver}" |
| 59 | + ./configure \ |
| 60 | + --build=${CHOST} \ |
| 61 | + --prefix=/usr \ |
| 62 | + --sysconfdir=/etc \ |
| 63 | + --localstatedir=/var \ |
| 64 | + --mandir=/usr/share/man \ |
| 65 | + --infodir=/usr/share/info \ |
| 66 | + --disable-pam \ |
| 67 | + --enable-utmp |
| 68 | + make |
| 69 | + make info |
| 70 | +} |
| 71 | + |
| 72 | +package() { |
| 73 | + cd "${srcdir}/${pkgname}-${pkgver}" |
| 74 | + make DESTDIR="${pkgdir}" install |
| 75 | + |
| 76 | + install -Dm644 etc/etcscreenrc "${pkgdir}/etc/screenrc" |
| 77 | + |
| 78 | + install -Dm755 "${srcdir}/colortest.sh" "${pkgdir}/usr/share/screen/colortest.sh" |
| 79 | + |
| 80 | + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" |
| 81 | +} |
0 commit comments