diff --git a/common/shlibs b/common/shlibs index 4da43cdc620..cc05468dbb9 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4540,3 +4540,5 @@ libopencore-amrwb.so.0 opencore-amr-0.1.6_1 libilbc.so.3 libilbc-3.0.4_1 libmaliit-plugins.so.2 maliit-keyboard-2.3.1_1 libSDL3.so.0 SDL3-3.2.2_1 +libiconv.so.2 libiconv-1.18_1 +libcharset.so.1 libiconv-1.18_1 diff --git a/srcpkgs/libiconv-devel b/srcpkgs/libiconv-devel new file mode 120000 index 00000000000..438c9f4bb91 --- /dev/null +++ b/srcpkgs/libiconv-devel @@ -0,0 +1 @@ +libiconv \ No newline at end of file diff --git a/srcpkgs/libiconv-utils b/srcpkgs/libiconv-utils new file mode 120000 index 00000000000..438c9f4bb91 --- /dev/null +++ b/srcpkgs/libiconv-utils @@ -0,0 +1 @@ +libiconv \ No newline at end of file diff --git a/srcpkgs/libiconv/template b/srcpkgs/libiconv/template new file mode 100644 index 00000000000..07b09cc9ec3 --- /dev/null +++ b/srcpkgs/libiconv/template @@ -0,0 +1,42 @@ +# Template file for 'libiconv' +pkgname=libiconv +version=1.18 +revision=1 +build_style=gnu-configure +configure_args="--enable-extra-encodings" +hostmakedepends="gettext" +short_desc="Portable implementation of GNU iconv" +maintainer="Orphaned " +license="GPL-3.0-or-later, LGPL-2.1-or-later" +homepage="https://www.gnu.org/software/libiconv/" +distfiles="${GNU_SITE}/libiconv/libiconv-${version}.tar.gz" +checksum=3b08f5f4f9b4eb82f151a7040bfd6fe6c6fb922efe4b1659c66ea933276965e8 + +post_install() { + # Avoid conflicts with libc iconv implementation + mkdir ${DESTDIR}/usr/include/libiconv + mv ${DESTDIR}/usr/include/*.h ${DESTDIR}/usr/include/libiconv + mv ${DESTDIR}/usr/bin/{,gnu-}iconv + + # Remove conflicting man pages and html docs + rm -rf ${DESTDIR}/usr/share/man + rm -rf ${DESTDIR}/usr/share/doc +} + +libiconv-utils_package() { + short_desc+=" - utilities" + pkg_install() { + vmove usr/bin + vmove usr/share/locale + } +} + +libiconv-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}