From 5f486ad7240ff87fd674180d2a8ce6a5bb33f366 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 6 May 2013 12:38:00 +0200 Subject: [PATCH] rxvt-unicode: add gdk_pixbuf (off), perl (off) and startup_notification pkg options (on). --- srcpkgs/rxvt-unicode/template | 39 ++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/srcpkgs/rxvt-unicode/template b/srcpkgs/rxvt-unicode/template index 613a9f5a070..a05002ebe4b 100644 --- a/srcpkgs/rxvt-unicode/template +++ b/srcpkgs/rxvt-unicode/template @@ -1,16 +1,15 @@ # Template build file for 'rxvt-unicode'. pkgname=rxvt-unicode version=9.18 -revision=1 +revision=2 build_style=gnu-configure configure_args="--with-terminfo=/usr/share/terminfo --enable-256-color - --enable-font-styles --enable-xim --enable-keepscrolling --enable-pixbuf + --enable-font-styles --enable-xim --enable-keepscrolling --enable-selectionscrolling --enable-smart-resize --enable-transparency --enable-utmp --enable-wtmp --enable-lastlog --disable-frills - --enable-startup-notification --enable-combining --with-term=rxvt-256color" + --enable-combining --with-term=rxvt-256color" hostmakedepends="pkg-config" -makedepends="renderproto fontconfig-devel libXrender-devel - libXft-devel glib-devel gdk-pixbuf-devel startup-notification-devel" +makedepends="renderproto fontconfig-devel libXrender-devel libXft-devel libSM-devel" short_desc="rxvt clone supporting Xft fonts and Unicode" maintainer="Juan RP " homepage="http://software.schmorp.de/pkg/rxvt-unicode.html" @@ -28,6 +27,36 @@ post_install() { vinstall ${FILESDIR}/${pkgname}.png 644 usr/share/pixmaps } +# Package build options +build_options="gdk_pixbuf perl startup_notification" +desc_option_gdk_pixbuf="Enable support to use transparency via gdk-pixbuf" +desc_option_perl="Enable support for perl bindings" +desc_option_startup_notification="Enable support for desktop notification" + +# Enable startup-notification by default. +build_options_default="startup_notification" + +if [ "$build_option_gdk_pixbuf" ]; then + configure_args+=" --enable-pixbuf" + makedepends+=" gdk-pixbuf-devel" +else + configure_args+=" --disable-pixbuf" +fi + +if [ "$build_option_perl" ]; then + configure_args+=" --enable-perl" + makedepends+=" perl" +else + configure_args+=" --disable-perl" +fi + +if [ "$build_option_startup_notification" ]; then + configure_args+=" --enable-startup-notification" + makedepends+=" startup-notification-devel" +else + configure_args+=" --disable-startup-notification" +fi + rxvt-unicode_package() { pkg_install() { vmove usr