summaryrefslogtreecommitdiffstats
path: root/abs/extra/community/screen/PKGBUILD
blob: f97df4bd0735fad60c963b3832e7b01e8fc6b518 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# $Id: PKGBUILD 9361 2008-08-17 06:28:44Z allan $
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Committer: dorphell <dorphell@gmx.net>

pkgname=screen
pkgver=4.0.3
pkgrel=6
_ptygroup=5 #the UID of our PTY/TTY group
pkgdesc="Full-screen window manager that multiplexes a physical terminal"
license=('GPL')
arch=('i686' 'x86_64')
install=screen.install
depends=(ncurses libelf shadow gpm)
backup=('etc/screenrc' 'etc/pam.d/screen')
url="ftp://ftp.uni-erlangen.de/pub/utilities/screen"
source=(ftp://ftp.uni-erlangen.de/pub/utilities/screen/screen-${pkgver}.tar.gz \
        screen.pam)
md5sums=('8506fd205028a96c741e4037de6e3c42' '74f7919d7b65436cc2ea5341fa8ca374')

build() {
  export MAKEFLAGS="-j1"
  cd ${startdir}/src/${pkgname}-${pkgver}

  ./configure --prefix=/usr --enable-pam \
        --with-sys-screenrc=/etc/screenrc --enable-colors256 \
       --enable-rxvt_osc --with-pty-group=$_ptygroup \
       --mandir=/usr/share/man
  make || return 1
  make DESTDIR=${startdir}/pkg install || return 1
  mkdir -p ${startdir}/pkg/etc/pam.d 
  install -m644 ${startdir}/src/screen.pam ${startdir}/pkg/etc/pam.d/screen

  cd etc/
  mkdir -p ${startdir}/pkg/usr/share/zsh/site-functions/
  install -m644 completer.zsh ${startdir}/pkg/usr/share/zsh/site-functions/screen
  mkdir -p ${startdir}/pkg/etc/skel/
  install -m644 etcscreenrc ${startdir}/pkg/etc/screenrc
  install -m644 screenrc ${startdir}/pkg/etc/skel/.screenrc

  rm -rf ${startdir}/pkg/usr/info
}