summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rxvt-unicode-256color/PKGBUILD66
-rw-r--r--rxvt-unicode-256color/font-width-fix.patch26
-rw-r--r--rxvt-unicode-256color/rxvt-unicode.desktop9
-rw-r--r--rxvt-unicode-256color/rxvt-unicode.pngbin0 -> 1513 bytes
4 files changed, 101 insertions, 0 deletions
diff --git a/rxvt-unicode-256color/PKGBUILD b/rxvt-unicode-256color/PKGBUILD
new file mode 100644
index 0000000..b2a4537
--- /dev/null
+++ b/rxvt-unicode-256color/PKGBUILD
@@ -0,0 +1,66 @@
+# Contributor: tobias <tobias@archlinux.org>
+# Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
+# Contributer: N30N <archlinux@alunamation.com>
+# Contributor: Florian Pritz <f-p@gmx.at>
+
+pkgname="rxvt-unicode-256color"
+pkgver=9.06
+pkgrel=2
+pkgdesc="an unicode enabled rxvt-clone terminal emulator (urxvt), with 256 colour support"
+arch=("i686" "x86_64")
+depends=("gcc-libs" "libxft" 'libxpm')
+makedepends=("ncurses" "perl>=5.10.0" "pkgconfig")
+optdepends=("gtk2-perl: for urxvt-tabbed usage")
+url="http://software.schmorp.de/pkg/rxvt-unicode.html"
+license=("GPL2")
+source=("rxvt-unicode.desktop" \
+ "rxvt-unicode.png" \
+ "font-width-fix.patch" \
+ http://dist.schmorp.de/rxvt-unicode/rxvt-unicode-${pkgver}.tar.bz2)
+md5sums=("ef2dfa44a86cae36a60f45559d8ad783" \
+ "84328cada91751df07324d95f8be4d1b" \
+ "df0c3a8b6bb0578d1b91e4081c47881c"
+ "4cb9330e99fc0b0b05cebf3581557dd8")
+provides=("rxvt-unicode" "rxvt-unicode-256color-fontfix")
+conflicts=("rxvt-unicode" "rxvt-unicode-256color-fontfix")
+replaces=("rxvt-unicode-256color-fontfix")
+
+build() {
+ cd ${srcdir}/rxvt-unicode-${pkgver}
+
+ # Add 256 color support
+ patch -p1 -i doc/urxvt-8.2-256color.patch || return 1
+
+ # Fix font width bug fix
+ patch -p0 -i ${srcdir}/font-width-fix.patch || return 1
+
+ ./configure --prefix=/usr \
+ --with-terminfo=/usr/share/terminfo \
+ --with-term=rxvt-256color \
+ --enable-font-styles \
+ --enable-xim \
+ --enable-keepscrolling \
+ --enable-selectionscrolling \
+ --enable-smart-resize \
+ --enable-xpm-background \
+ --enable-transparency \
+ --enable-utmp \
+ --enable-wtmp \
+ --enable-lastlog
+
+ msg "Starting build process."
+ make || return 1
+ install -d ${pkgdir}/usr/share/terminfo
+ export TERMINFO=${pkgdir}/usr/share/terminfo
+ make DESTDIR=${pkgdir} install
+
+ # install the tabbing wrapper
+ sed -i 's/\"rxvt\"/"urxvt"/' doc/rxvt-tabbed
+ install -D -m755 doc/rxvt-tabbed ${startdir}/pkg/usr/bin/urxvt-tabbed
+
+ # install freedesktop menu and icon ( icon from cvs checkout )
+ install -D -m644 ${srcdir}/rxvt-unicode.desktop \
+ ${pkgdir}/usr/share/applications/rxvt-unicode.desktop
+ install -Dm644 ${srcdir}/rxvt-unicode.png \
+ ${pkgdir}/usr/share/pixmaps/rxvt-unicode.png
+}
diff --git a/rxvt-unicode-256color/font-width-fix.patch b/rxvt-unicode-256color/font-width-fix.patch
new file mode 100644
index 0000000..811d9e6
--- /dev/null
+++ b/rxvt-unicode-256color/font-width-fix.patch
@@ -0,0 +1,26 @@
+--- src/rxvtfont.C.bukind 2007-11-30 14:36:33.000000000 +0600
++++ src/rxvtfont.C 2007-11-30 14:39:29.000000000 +0600
+@@ -1171,12 +1171,21 @@
+ XGlyphInfo g;
+ XftTextExtents16 (disp, f, &ch, 1, &g);
+
++/*
++ * bukind: don't use g.width as a width of a character!
++ * instead use g.xOff, see e.g.: http://keithp.com/~keithp/render/Xft.tutorial
++
+ g.width -= g.x;
+
+ int wcw = WCWIDTH (ch);
+ if (wcw > 0) g.width = (g.width + wcw - 1) / wcw;
+
+ if (width < g.width ) width = g.width;
++ */
++ int wcw = WCWIDTH (ch);
++ if (wcw > 1) g.xOff = g.xOff / wcw;
++ if (width < g.xOff) width = g.xOff;
++
+ if (height < g.height ) height = g.height;
+ if (glheight < g.height - g.y) glheight = g.height - g.y;
+ }
+
+
diff --git a/rxvt-unicode-256color/rxvt-unicode.desktop b/rxvt-unicode-256color/rxvt-unicode.desktop
new file mode 100644
index 0000000..c616994
--- /dev/null
+++ b/rxvt-unicode-256color/rxvt-unicode.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Name=rxvt-unicode
+Comment=An Unicode capable rxvt clone
+Exec=urxvt
+Icon=rxvt-unicode
+Terminal=false
+Type=Application
+Categories=System;TerminalEmulator;
diff --git a/rxvt-unicode-256color/rxvt-unicode.png b/rxvt-unicode-256color/rxvt-unicode.png
new file mode 100644
index 0000000..0738a78
--- /dev/null
+++ b/rxvt-unicode-256color/rxvt-unicode.png
Binary files differ