updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / screen-vs / PKGBUILD
blob282cd6e2bd4847a20c4de72be14ef921c7052c72
1 # Contributor: Joyfulgirl <joyfulgirl (at) archlinux.us>
2 # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
3 # Maintainer: Erus <erus.iluvatar@gmail.com>
5 pkgname=screen-vs
6 pkgver=4.0.3
7 pkgrel=5
8 pkgdesc="Terminal multiplexing window manager, with vertical split patch"
9 arch=('i686' 'x86_64')
10 provides=('screen')
11 conflicts=('screen')
12 license=(GPL)
13 backup=('etc/skel/.screenrc' 'etc/screenrc')
14 install=screen.install
15 depends=('ncurses' 'pam')
16 backup=('etc/screenrc' 'etc/pam.d/screen')
17 url=http://fungi.yuggoth.org/vsp4s/
18 source=("ftp://www.mirrorservice.org/sites/ftp.gnu.org/gnu/screen/screen-${pkgver}.tar.gz"
19         "http://vsp4sdl.yuggoth.org/wrp_vertical_split_0.3_4.0.2.diff.bz2"
20         'screen-256color.ti' 'screen.pam')
21 md5sums=('8506fd205028a96c741e4037de6e3c42' '483efadbe6d8e13cafc8bc4f5cf8db99'
22          'ec2c96034f1245b1bc15211a825f2584' '74f7919d7b65436cc2ea5341fa8ca374')
24 build() {
25     export LDFLAGS="${LDFLAGS} -Wl,--as-needed"
26     _ptygroup=5
27     cd ${srcdir}/screen-${pkgver}
28   
29     patch -Np1 < ../wrp_vertical_split_0.3_4.0.2.diff || return 1
31     ./configure --prefix=/usr --enable-pam \
32         --with-sys-screenrc=/etc/screenrc --enable-colors256 \
33         --enable-rxvt_osc --with-pty-group=$_ptygroup \
34         --mandir=/usr/share/man --infodir=/usr/share/info || return 1
35     make || return 1
36     make DESTDIR=$pkgdir install || return 1
38     install -Dm644 etc/etcscreenrc ${pkgdir}/etc/screenrc
39     install -Dm644 etc/screenrc ${pkgdir}/etc/skel/.screenrc
40     install -Dm644 ${startdir}/screen.pam ${pkgdir}/etc/pam.d/screen
42     install -Dm644 ${startdir}/screen-256color.ti ${pkgdir}/usr/share/screen/
43     install -Dm644 etc/completer.zsh ${pkgdir}/usr/share/zsh/site-functions/screen
45     rm -f ${pkgdir}/usr/share/info/dir
46     gzip -9 ${pkgdir}/usr/share/info/*