3) You have skipped the cygautoreconf step. As mentioned in the cygport
documentation, this is strongly discouraged, particularly where libtool
is involved.
Therefore the .cygport should look like:
DESCRIPTION="Unicode string library"
HOMEPAGE="http://www.gnu.org/s/libunistring/"
SRC_URI="mirror://gnu/libunistring/${P}.tar.gz"
PKG_NAMES="libunistring0 libunistring-devel libunistring-doc"
libunistring0_CONTENTS="usr/bin/cygunistring-0.dll"
libunistring_devel_CONTENTS="usr/include/ usr/lib/"
libunistring_doc_CONTENTS="usr/share/doc/ usr/share/info/"
That's it.
4) I see this is one of Bruno's packages. He has some unconventional
views about the PE format, and Cygwin in particular. I would suggest
the attached patch.
category: Libs
requires: libgcc1
sdesc: "Library for manipulating Unicode strings."
ldesc: "This library provides functions for manipulating Unicode
strings and for manipulating C strings according to the Unicode standard."
You will need separate .hint files for each subpackage, adding the
external-source tag. You also need to add a libiconv2 dependency to the
runtime package and libiconv to the devel package.