From 8762dc0a014465de4e6e62edf0c1fca6cb3b3219 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 19 Feb 2013 23:01:41 +0100 Subject: [PATCH] irssi: disable static; set -devel noarch; cross build support. --- srcpkgs/irssi/irssi-devel.template | 7 ++----- srcpkgs/irssi/irssi-perl.template | 6 +----- srcpkgs/irssi/template | 18 ++++++++++-------- 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/srcpkgs/irssi/irssi-devel.template b/srcpkgs/irssi/irssi-devel.template index 2530cba0db4..5210aaae663 100644 --- a/srcpkgs/irssi/irssi-devel.template +++ b/srcpkgs/irssi/irssi-devel.template @@ -1,12 +1,9 @@ # Template file for 'irssi-devel'. # depends="perl>=5.16 glib-devel openssl-devel ncurses-devel" -short_desc="${short_desc} (development files)" -long_desc="${long_desc} - - This package contains files for development, headers, static libs, etc." +short_desc="${short_desc} -- development files" +noarch=yes do_install() { vmove usr/include usr - vmove "usr/lib/irssi/modules/*.a" usr/lib/irssi/modules } diff --git a/srcpkgs/irssi/irssi-perl.template b/srcpkgs/irssi/irssi-perl.template index 4e032d66be1..8ec008c69af 100644 --- a/srcpkgs/irssi/irssi-perl.template +++ b/srcpkgs/irssi/irssi-perl.template @@ -1,11 +1,7 @@ # Template file for 'irssi-perl'. # depends="perl>=5.16 irssi>=$version" -short_desc="${sourcepkg} perl support" -long_desc="${long_desc} - - This package contains the modules to enable perl support with the - irssi package, and related perl scripts included." +short_desc="${short_desc} -- perl support" do_install() { vmove usr/lib/perl5 usr/lib diff --git a/srcpkgs/irssi/template b/srcpkgs/irssi/template index 0203b427af1..d6d9137416d 100644 --- a/srcpkgs/irssi/template +++ b/srcpkgs/irssi/template @@ -1,9 +1,9 @@ # Template build file for 'irssi' pkgname=irssi version=0.8.15 -revision=5 -configure_args="--with-proxy --with-perl=module" +revision=6 build_style=gnu-configure +configure_args="--disable-static --with-proxy --with-perl=module" makedepends="perl>=5.16 pkg-config glib-devel openssl-devel ncurses-devel" conf_files="/etc/irssi.conf" subpackages="irssi-devel irssi-perl" @@ -13,9 +13,11 @@ maintainer="Juan RP " license="GPL-2" distfiles="http://www.irssi.org/files/$pkgname-$version.tar.bz2" checksum=c12d16fb605103d7c256ddce44012dc396af57f3771e086d0387c195a052a0a6 -long_desc=" - Irssi is a modular IRC client that currently has only text mode user - interface, but 80-90% of the code isn't text mode specific, so other UIs - could be created pretty easily. Also, Irssi isn't really even IRC specific - anymore, there's already a working SILC module available. Support for other - protocols like ICQ could be created some day too." + +if [ -n "$XBPS_CROSS_TRIPLET" ]; then + # XXX perl module + makedepends="pkg-config ncurses-devel" + crossmakedepends="libglib-devel openssl-devel ncurses-devel" + configure_args="${configure_args} --without-perl" + subpackages="irssi-devel" +fi