updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / rxvt-unicode-cvs / PKGBUILD
blob61d30b0f360ff7fb97f13abb3bebb5839402a839
1 # Contributor: Kosenko Roman <madkite@gmail.com>
2 pkgname=rxvt-unicode-cvs
3 pkgver=20120114
4 pkgrel=1
5 pkgdesc='A clone of the well known terminal emulator rxvt, development version'
6 url='http://software.schmorp.de/pkg/rxvt-unicode.html'
7 license=('GPL2')
8 arch=('i686' 'x86_64')
9 depends=('gcc-libs' 'libxft' 'libxpm')
10 makedepends=('ncurses' 'perl' 'pkgconfig' 'cvs')
11 optdepends=('perl: plugins' 'xsel-svn: clipboard support')
12 source=(
13                 urxvtcd.sh tabbed.pl remote-clipboard.pl pagescroll.pl x-defaults \
14                 noinc.patch popup-menu-hang.patch default-daemon-options.patch)
15 provides=('rxvt-unicode')
16 conflicts=('rxvt-unicode')
18 _cvsroot=":pserver:anonymous:@cvs.schmorp.de/schmorpforge"
19 _cvsmod="rxvt-unicode"
21 _cvssrc="${SRCDEST}/${pkgname}.tar.gz"
23 build() {
24         cd ${srcdir}
25         [ -d ${_cvsmod} ] && rm -rf ${_cvsmod}
26         [ -f ${_cvssrc} ] && tar -xzf ${_cvssrc}
27         msg "Connecting to ${_cvsmod} CVS server...."
28         if [ -d ${_cvsmod}/CVS ]; then
29                 (cd ${_cvsmod} && cvs -z3 update -d)
30         else
31                 cvs -z3 -d ${_cvsroot} co -D ${pkgver} -f ${_cvsmod}
32         fi
33         tar -czf ${_cvssrc} ${_cvsmod}
34         cd ${_cvsmod}
36         msg "Patching..."
37         #patch -p0 -i ../noinc.patch || return $?
38         patch -p0 -i ../popup-menu-hang.patch || return $?
39         patch -p0 -i ../default-daemon-options.patch || return $?
41         msg "Starting make..."
42         rm -rf ../${_cvsmod}-build
43         mkdir ../${_cvsmod}-build
44         cd ../${_cvsmod}-build
45         ../${_cvsmod}/configure --prefix=/usr --with-terminfo=/usr/share/terminfo --mandir=/usr/man \
46                 --enable-xft \
47                 --enable-font-styles \
48                 --disable-xim \
49                 --disable-unicode3 \
50                 --disable-combining \
51                 --disable-fallback \
52                 --disable-utmp \
53                 --disable-wtmp \
54                 --disable-lastlog \
55                 --disable-afterimage \
56                 --disable-transparency \
57                 --enable-fading \
58                 --disable-rxvt-scroll \
59                 --disable-next-scroll \
60                 --disable-xterm-scroll \
61                 --enable-frills \
62                 --disable-iso14755 \
63                 --disable-keepscrolling \
64                 --enable-selectionscrolling \
65                 --enable-mousewheel \
66                 --enable-slipwheeling \
67                 --enable-smart-resize \
68                 --enable-perl \
69                 --enable-256-color \
70                 --with-term=rxvt \
71                 || return $?
72         make || return $?
73         mkdir -p ${startdir}/pkg/usr/share/terminfo
74         TERMINFO=${startdir}/pkg/usr/share/terminfo make DESTDIR=${startdir}/pkg install || return $?
75         install -m755 ../urxvtcd.sh ${startdir}/pkg/usr/bin/urxvtcd
76         install -m644 -D ../${_cvsmod}/debian/urxvtcd.1 ${startdir}/pkg/usr/man/man1/urxvtcd.1 || true
77         install -m644 -D ../x-defaults ${startdir}/pkg/etc/X11/app-defaults/URxvt
78         cd ..
79         for i in *.pl; do install -m644 -D ${i} ${startdir}/pkg/usr/lib/urxvt/perl/${i%.pl}; done
82 md5sums=('bb73d416b4b1bf7708c422ae514e3fab'
83          'de9f9c9516e9255a5edd4056e1d021e5'
84          '8eea30c5aa019160f5b8bf6172b4cc77'
85          '451e64febc1d55411f8ad4ca57875800'
86          'e178258e4bee1d38e317769106347f2c'
87          '4b8610ab203247cf84151ccd706180d2'
88          'aead33ba3b08eeb251fb0c1427a4a024'
89          '323b640317ce8752f712ce8af69cebb7')