libidn2: new package, libidn2 0.11

This commit is contained in:
Tom G. Christensen 2016-12-20 21:19:45 +01:00
parent 9a1e59d885
commit 81b20f4125
4 changed files with 14126 additions and 0 deletions

71
libidn2/build.sh Executable file
View File

@ -0,0 +1,71 @@
#!/bin/bash
# This is a buildpkg build.sh script
# build.sh helper functions
. ${BUILDPKG_SCRIPTS}/build.sh.functions
#
###########################################################
# Check the following 4 variables before running the script
topdir=libidn2
version=0.11
pkgver=1
source[0]=http://www.mirrorservice.org/sites/alpha.gnu.org/gnu/libidn/$topdir-$version.tar.gz
#source[0]=libidn2-with-getopt-gnu-0.11.tar.gz
# If there are no patches, simply comment this
patch[0]=libidn2-0.11-add-getopt-gnu.patch
# Source function library
. ${BUILDPKG_SCRIPTS}/buildpkg.functions
# Global settings
export CPPFLAGS="-I$prefix/include"
export LDFLAGS="-L$prefix/lib -R$prefix/lib"
configure_args+=(--disable-static --with-libiconv-prefix=$prefix --with-libintl-prefix=$prefix)
reg prep
prep()
{
generic_prep
setdir source
# Do not build examples
${__gsed} -i 's/examples//' Makefile.in
# No stdint.h on Solaris < 10
${__gsed} -i 's/stdint.h/inttypes.h/' idn2.h.in
}
reg build
build()
{
generic_build
}
reg check
check()
{
setdir source
${__gsed} -i '/^DEFAULT_INCLUDES/ s#.*#& -I../gl#' tests/Makefile.in
generic_check
}
reg install
install()
{
generic_install DESTDIR
doc AUTHORS COPYING* NEWS README
}
reg pack
pack()
{
generic_pack
}
reg distclean
distclean()
{
clean distclean
}
###################################################
# No need to look below here
###################################################
build_sh $*

4
libidn2/meta/ChangeLog Normal file
View File

@ -0,0 +1,4 @@
CHANGELOG
---------
* Sat Nov 26 2016 Tom G. Christensen <swpkg@jupiterrise.com> - 0.11-1
- Initial build

27
libidn2/meta/pkgdef Normal file
View File

@ -0,0 +1,27 @@
[libidn2]
pkgname="${pkgprefix}lidn2"
name="$topdir - GNU libidn2"
pkgcat="application"
pkgvendor="https://www.gnu.org/software/libidn/"
pkgdesc="An implementation of the IDNA2008 specifications"
pkgver="$pkgver"
files(-,root,bin)
default_docs
$_bindir/idn2
$_libdir/libidn2.so.*
$_infodir
$_mandir/man1
[libidn2-devel]
pkgname="${pkgprefix}lidn2d"
name="${topdir}-devel - Development support for libidn2"
pkgcat="application"
pkgvendor="https://www.gnu.org/software/libidn/"
pkgdesc="Files needed for developing with libidn2"
pkgver="$pkgver"
files(-,root,bin)
$_includedir
$_libdir/libidn2.so
$_mandir/man3
$_sharedir/gtk-doc/html/libidn2

File diff suppressed because it is too large Load Diff