updated on Sun Jan 22 08:00:21 UTC 2012
[aur-mirror.git] / rxvt-unicode-patched / PKGBUILD
blob87d5f161ebe8c5aca5696f9fe16f7b161a04d694
1 # Maintainer: Daniel Micay <danielmicay@gmail.com>
2 # Contributor: Angel Velasquez <angvp@archlinux.org>
3 # Contributor: tobias <tobias@archlinux.org>
4 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
6 pkgname=rxvt-unicode-patched
7 _pkgname=rxvt-unicode
8 pkgver=9.15
9 pkgrel=1
10 pkgdesc="Unicode enabled rxvt-clone terminal emulator (urxvt) with fixed font spacing (width)."
11 arch=('i686' 'x86_64')
12 url="http://software.schmorp.de/pkg/rxvt-unicode.html"
13 license=('GPL')
14 depends=('gcc-libs' 'libxft' 'gdk-pixbuf2')
15 optdepends=('perl: lots of utilities' 'gtk2-perl: to use the urxvt-tabbed')
16 source=(http://dist.schmorp.de/rxvt-unicode/$_pkgname-$pkgver.tar.bz2
17         $_pkgname.desktop
18         font-width-fix.patch)
19 sha1sums=('e6fdf091860ecb458730dc68b0176f67f207a2f7'
20           'a61b126b40f2452400a073bb69725e669371db1d'
21           '01ee8f212add79a158dcd4ed78d0ea1324bdc59b')
22 provides=(rxvt-unicode)
23 conflicts=(rxvt-unicode)
25 build() {
26   cd "$srcdir/$_pkgname-$pkgver"
27   patch -p0 -i ../font-width-fix.patch
28   ./configure --prefix=/usr \
29     --with-terminfo=/usr/share/terminfo \
30     --enable-256-color \
31     --enable-font-styles \
32     --enable-xim \
33     --enable-keepscrolling \
34     --enable-selectionscrolling \
35     --enable-smart-resize \
36     --enable-pixbuf \
37     --enable-transparency \
38     --enable-utmp \
39     --enable-wtmp \
40     --enable-lastlog \
41     --disable-frills
42   make
45 package() {
46   cd "$srcdir/$_pkgname-$pkgver"
47   install -d "$pkgdir/usr/share/terminfo"
48   export TERMINFO="$pkgdir/usr/share/terminfo"
49   make DESTDIR="$pkgdir" install
50   # install the tabbing wrapper ( requires gtk2-perl! )
51   sed -i 's/\"rxvt\"/"urxvt"/' doc/rxvt-tabbed
52   install -Dm 755 doc/rxvt-tabbed "$pkgdir/usr/bin/urxvt-tabbed"
53   # install freedesktop menu
54   install -Dm644 ../$_pkgname.desktop \
55     "$pkgdir/usr/share/applications/$_pkgname.desktop"