diff --git a/srcpkgs/rxvt-unicode/files/rxvt-unicode.desktop b/srcpkgs/rxvt-unicode/files/rxvt-unicode.desktop new file mode 100644 index 0000000000..436e8d119e --- /dev/null +++ b/srcpkgs/rxvt-unicode/files/rxvt-unicode.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=rxvt-unicode +Comment=An Unicode capable rxvt clone +Exec=urxvt +Icon=rxvt-unicode +Terminal=false +Type=Application +Categories=Application;System;TerminalEmulator; diff --git a/srcpkgs/rxvt-unicode/files/rxvt-unicode.png b/srcpkgs/rxvt-unicode/files/rxvt-unicode.png new file mode 100644 index 0000000000..0738a78409 Binary files /dev/null and b/srcpkgs/rxvt-unicode/files/rxvt-unicode.png differ diff --git a/srcpkgs/rxvt-unicode/patches/rxvt-unicode-9.06-glibc-2.10.patch b/srcpkgs/rxvt-unicode/patches/rxvt-unicode-9.06-glibc-2.10.patch deleted file mode 100644 index c4c25dbb30..0000000000 --- a/srcpkgs/rxvt-unicode/patches/rxvt-unicode-9.06-glibc-2.10.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- src/background.C.orig 2009-04-25 01:12:46.000000000 +0200 -+++ src/background.C 2009-04-25 01:19:21.000000000 +0200 -@@ -261,7 +261,7 @@ - unsigned int w = 0, h = 0; - unsigned int n; - unsigned long new_flags = (flags & (~geometryFlags)); -- char *p; -+ const char *p; - # define MAXLEN_GEOM 256 /* could be longer than regular geometry string */ - - if (geom == NULL) -@@ -677,7 +677,7 @@ - if (!target->asimman) - target->asimman = create_generic_imageman (target->rs[Rs_path]); - -- if (char *f = strchr (file, ';')) -+ if (char *f = (char *) strchr (file, ';')) - { - size_t len = f - file; - f = (char *)malloc (len + 1); ---- src/command.C.orig 2009-04-25 01:20:29.000000000 +0200 -+++ src/command.C 2009-04-25 01:21:20.000000000 +0200 -@@ -3336,7 +3336,7 @@ - } - else - { -- char *eq = strchr (str, '='); // constness lost, but verified to be ok -+ char *eq = (char *) strchr (str, '='); // constness lost, but verified to be ok - - if (eq) - { ---- src/misc.C.orig 2009-04-25 01:41:05.000000000 +0200 -+++ src/misc.C 2009-04-25 01:41:37.000000000 +0200 -@@ -170,7 +170,7 @@ - char * - rxvt_basename (const char *str) NOTHROW - { -- char *base = strrchr (str, '/'); -+ char *base = (char *) strrchr (str, '/'); - - return (char *) (base ? base + 1 : str); - } diff --git a/srcpkgs/rxvt-unicode/template b/srcpkgs/rxvt-unicode/template index ae1c512d48..bd9bcd713a 100644 --- a/srcpkgs/rxvt-unicode/template +++ b/srcpkgs/rxvt-unicode/template @@ -1,25 +1,30 @@ # Template build file for 'rxvt-unicode'. pkgname=rxvt-unicode -version=9.06 -revision=2 +version=9.10 distfiles="http://dist.schmorp.de/${pkgname}/${pkgname}-${version}.tar.bz2" build_style=gnu_configure -configure_args="--enable-everything" +configure_args="--with-terminfo=/usr/share/terminfo --enable-256-color +--enable-font-styles --enable-xim --enable-keepscrolling --enable-pixbuf +--enable-selectionscrolling --enable-smart-resize --enable-transparency +--enable-utmp --enable-wtmp --enable-lastlog --disable-frills" short_desc="rxvt clone supporting Xft fonts and Unicode" maintainer="Juan RP " -checksum=8ef9359c01059efd330626c6cd7b082be9bf10587f2b9fe84caa43a84aa576d1 +checksum=1c238f7e545b1a8da81239b826fb2a7d196c73effbcbd211db7a50995a0a067a long_desc=" rxvt-unicode is a clone of the well known terminal emulator rxvt, modified to store text in Unicode (either UCS-2 or UCS-4) and to use locale-correct input and output. It also supports mixing multiple fonts at the same time, including Xft fonts." +Add_dependency run libgcc Add_dependency run glibc Add_dependency run fontconfig Add_dependency run freetype Add_dependency run libX11 Add_dependency run libXft Add_dependency run libXrender +Add_dependency run gdk-pixbuf +Add_dependency run glib Add_dependency full perl ">=0" Add_dependency build pkg-config @@ -29,3 +34,13 @@ Add_dependency build freetype-devel Add_dependency build libX11-devel Add_dependency build libXft-devel Add_dependency build libXrender-devel +Add_dependency build gdk-pixbuf-devel +Add_dependency build glib-devel + +post_install() +{ + install -D -m644 ${FILESDIR}/${pkgname}.desktop \ + ${DESTDIR}/usr/share/applications/${pkgname}.desktop + install -D -m644 ${FILESDIR}/${pkgname}.png \ + ${DESTDIR}/usr/share/pixmaps/${pkgname}.png +}