From 517cd11ee6b474d95ad088fe1f388338346e5bd4 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Mon, 18 Jun 2012 12:06:09 +0200
Subject: [PATCH] libidn: update to 1.25.

---
 srcpkgs/libidn/libidn-devel.template |  3 +--
 srcpkgs/libidn/template              | 11 +++++------
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/srcpkgs/libidn/libidn-devel.template b/srcpkgs/libidn/libidn-devel.template
index 3be6acfb476..701d19e63ee 100644
--- a/srcpkgs/libidn/libidn-devel.template
+++ b/srcpkgs/libidn/libidn-devel.template
@@ -1,12 +1,11 @@
 # Template file for 'libidn-devel'.
 #
-depends="glibc-devel libidn"
+depends="glibc-devel libidn>=$version"
 short_desc="${short_desc} - development files"
 long_desc="${long_desc}
 
  This package contains files for development, headers, static libs, etc."
 
-
 do_install() {
 	vmove usr/include usr
 	vmove "usr/lib/*.a" usr/lib
diff --git a/srcpkgs/libidn/template b/srcpkgs/libidn/template
index c4960ad7afc..ab9409a56dc 100644
--- a/srcpkgs/libidn/template
+++ b/srcpkgs/libidn/template
@@ -1,16 +1,17 @@
 # Template build file for 'libidn'.
 pkgname=libidn
-version=1.24
-distfiles="http://ftp.gnu.org/gnu/libidn/libidn-$version.tar.gz"
+version=1.25
+revision=1
 build_style=gnu-configure
 configure_args="--disable-csharp --disable-java --enable-threads=posix"
 makedepends="perl pkg-config"
-revision=1
+subpackages="$pkgname-devel"
 short_desc="Internationalized Domain Names command line tool"
 maintainer="Juan RP <xtraeme@gmail.com>"
 homepage="http://www.gnu.org/software/libidn/"
 license="GPL3, LGPL"
-checksum=da1708c6063ecb7951a0908e67df3eacdfe128b18edaa6cf6867d7b73b5f35ff
+distfiles="http://ftp.gnu.org/gnu/libidn/libidn-$version.tar.gz"
+checksum=7fe625328a6a5d837d723c462c1788affb84d9c9fc0ae5cd0ce9ac7724c34716
 long_desc="
  GNU Libidn is an implementation of the Stringprep, Punycode, and IDNA
  specifications defined by the IETF Internationalized Domain Names (IDN)
@@ -24,5 +25,3 @@ long_desc="
  bidirectional character handling. Profiles for iSCSI, Kerberos 5, Nameprep,
  SASL, and XMPP are included. Punycode and ASCII Compatible Encoding (ACE) via
  IDNA are supported."
-
-subpackages="$pkgname-devel"