updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rxvt-unicode-256color-layoutgaps / PKGBUILD
blob82d014cf8b116a36129585f43c598fd375d3d9f3
1 # Contributor: Nils Schweinsberg <mail@n-sch.de>
3 pkgname="rxvt-unicode-256color-layoutgaps"
4 pkgver=9.07
5 pkgrel=1
6 pkgdesc="a unicode enabled rxvt-clone terminal emulator (urxvt), with 256 colour support and a layout gap fix"
7 arch=("i686" "x86_64")
8 depends=("gcc-libs" "libxft")
9 makedepends=("ncurses" "perl" "pkgconfig")
10 optdepends=("gtk2-perl: for urxvt-tabbed usage")
11 provides=("rxvt-unicode")
12 conflicts=("rxvt-unicode" "rxvt-unicode-256color")
13 url="http://software.schmorp.de/pkg/rxvt-unicode.html"
14 license=("GPL2")
15 install=rxvt-unicode-256color.install
16 source=("rxvt-unicode.desktop" \
17         "rxvt-unicode.png" \
18         "font-width-fix.patch" \
19         "gcc4.4.patch" \
20         "layoutgaps.patch" \
21         http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-${pkgver}.tar.bz2)
22 md5sums=('ef2dfa44a86cae36a60f45559d8ad783'
23         '84328cada91751df07324d95f8be4d1b'
24         'df0c3a8b6bb0578d1b91e4081c47881c'
25         '1b9b112df2204e1e58c66bf2d5776422'
26         '43f1654010e088ef847d75a96c705a58'
27         '49bb52c99e002bf85eb41d8385d903b5')
29 build() {
30         cd ${srcdir}/rxvt-unicode-${pkgver}
32         # Add 256 color support
33         patch -p1 -i doc/urxvt-8.2-256color.patch || return 1
35         # Fix font width bug fix
36         patch -p0 -i ${srcdir}/font-width-fix.patch || return 1
38         # Fix layout gaps (for example with tiled window managers)
39         patch -p0 -i ${srcdir}/layoutgaps.patch || return 1
41         # Port to compile with GCC4.4
42 #       patch -p0 -i ${srcdir}/gcc4.4.patch || return 1
44         ./configure --prefix=/usr \
45                 --with-terminfo=/usr/share/terminfo \
46                 --with-term=rxvt-256color \
47                 --enable-smart-resize \
48                 --disable-iso14755
50         msg "Starting build process."
51         make || return 1
52         install -d ${pkgdir}/usr/share/terminfo
53         TERMINFO=${pkgdir}/usr/share/terminfo
54         make DESTDIR=${pkgdir} install
56         # install the tabbing wrapper
57         sed -i 's/\"rxvt\"/"urxvt"/' doc/rxvt-tabbed
58         install -D -m755 doc/rxvt-tabbed ${startdir}/pkg/usr/bin/urxvt-tabbed
60         # install freedesktop menu and icon ( icon from cvs checkout )
61         install -D -m644 ${srcdir}/rxvt-unicode.desktop \
62                 ${pkgdir}/usr/share/applications/rxvt-unicode.desktop
63         install -Dm644 ${srcdir}/rxvt-unicode.png \
64                 ${pkgdir}/usr/share/pixmaps/rxvt-unicode.png