diff --git a/srcpkgs/irssi-perl b/srcpkgs/irssi-perl new file mode 120000 index 00000000000..12532cbc9b1 --- /dev/null +++ b/srcpkgs/irssi-perl @@ -0,0 +1 @@ +irssi \ No newline at end of file diff --git a/srcpkgs/irssi/irssi-devel.template b/srcpkgs/irssi/irssi-devel.template index 493f87ad8ce..65e28325f71 100644 --- a/srcpkgs/irssi/irssi-devel.template +++ b/srcpkgs/irssi/irssi-devel.template @@ -5,6 +5,13 @@ long_desc="${long_desc} This package contains files for development, headers, static libs, etc." +revision=1 + +Add_dependency run perl +Add_dependency run pkg-config +Add_dependency run glib-devel +Add_dependency run openssl-devel +Add_dependency run ncursesw-devel Add_dependency run irssi do_install() diff --git a/srcpkgs/irssi/irssi-perl.template b/srcpkgs/irssi/irssi-perl.template new file mode 100644 index 00000000000..023670f23b2 --- /dev/null +++ b/srcpkgs/irssi/irssi-perl.template @@ -0,0 +1,23 @@ +# Template file for 'irssi-perl'. +# +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." + +Add_dependency run perl +Add_dependency run irssi +Add_dependency run glibc + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/irssi/modules + mkdir -p ${DESTDIR}/usr/share/irssi + + mv ${SRCPKGDESTDIR}/usr/lib/perl5 ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/irssi/modules/*perl* \ + ${DESTDIR}/usr/lib/irssi/modules + mv ${SRCPKGDESTDIR}/usr/share/irssi/scripts \ + ${DESTDIR}/usr/share/irssi +} diff --git a/srcpkgs/irssi/template b/srcpkgs/irssi/template index d1c57029cb0..7b749fd361c 100644 --- a/srcpkgs/irssi/template +++ b/srcpkgs/irssi/template @@ -1,8 +1,9 @@ # Template build file for 'irssi' pkgname=irssi version=0.8.14 +revision=1 distfiles="http://www.irssi.org/files/$pkgname-$version.tar.bz2" -configure_args="--with-proxy" +configure_args="--with-proxy --with-perl=module" build_style=gnu_configure short_desc="Secure and modular IRC client with text mode user interface" maintainer="Juan RP " @@ -15,14 +16,20 @@ long_desc=" protocols like ICQ could be created some day too." conf_files="/etc/irssi.conf" -subpackages="$pkgname-devel" +subpackages="irssi-devel irssi-perl" Add_dependency run glibc Add_dependency run glib Add_dependency run openssl -Add_dependency run ncurses-libs -Add_dependency full perl +Add_dependency run ncursesw +Add_dependency build perl Add_dependency build pkg-config Add_dependency build glib-devel Add_dependency build openssl-devel -Add_dependency build ncurses-devel +Add_dependency build ncursesw-devel + +pre_configure() +{ + sed -i -e "s|/usr/include/ncurses|/usr/include/ncursesw|g" \ + -e "s|-lncurses|-lncursesw|g" ${wrksrc}/configure +}