diff --git a/pkgconf/build.sh b/pkgconf/build.sh new file mode 100755 index 0000000..9601a34 --- /dev/null +++ b/pkgconf/build.sh @@ -0,0 +1,69 @@ +#!/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=pkgconf +version=0.9.12-56-g7e6fa32 +pkgver=1 +# Source fetched from https://github.com/pkgconf/pkgconf +# git archive --format=tar --prefix=pkgconf-0.9.12-56-g7e6fa32/ \ +# -o ../pkgconf-0.9.12-56-g7e6fa32.tar pkgconf-0.9.12-56-g7e6fa32 +source[0]=$topdir-$version.tar.xz +# If there are no patches, simply comment this +patch[0]=pkgconf-stdint_h.patch +patch[1]=pkgconf-dist-doc.patch +patch[2]=pkgconf-include-order.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+=(--docdir=$prefix/$_vdocdir) + +reg prep +prep() +{ + generic_prep + setdir source + bash autogen.sh +} + +reg build +build() +{ + generic_build +} + +reg check +check() +{ + generic_check +} + +reg install +install() +{ + generic_install DESTDIR +} + +reg pack +pack() +{ + generic_pack +} + +reg distclean +distclean() +{ + clean distclean +} + +################################################### +# No need to look below here +################################################### +build_sh $* diff --git a/pkgconf/meta/ChangeLog b/pkgconf/meta/ChangeLog new file mode 100644 index 0000000..4db7d71 --- /dev/null +++ b/pkgconf/meta/ChangeLog @@ -0,0 +1,4 @@ +CHANGELOG +--------- +* Sat Mar 05 2016 Tom G. Christensen - 0.9.12-56-g7e6fa32-1 +- First package diff --git a/pkgconf/meta/pkgdef b/pkgconf/meta/pkgdef new file mode 100644 index 0000000..448187a --- /dev/null +++ b/pkgconf/meta/pkgdef @@ -0,0 +1,26 @@ +[pkgconf] +pkgname="${pkgprefix}pkgcf" +name="$topdir - A pkg-config replacement" +pkgcat="application" +pkgvendor="https://github.com/pkgconf/pkgconf/wiki" +pkgdesc="Package compiler and linker metadata toolkit" +pkgver="$pkgver" +files(-,root,bin) +default_docs +$_bindir/pkgconf +$_libdir/libpkgconf.so.* +$_sharedir/aclocal/pkg.m4 +$_mandir/man1/pkgconf.1* + +[pkgconf-devel] +pkgname="${pkgprefix}pkcfd" +name="${topdir}d - A pkg-config replacement" +pkgcat="application" +pkgvendor="https://github.com/pkgconf/pkgconf/wiki" +pkgdesc="Package compiler and linker metadata toolkit" +pkgver="$pkgver" +files(-,root,bin) +$_libdir/libpkgconf.so +$_libdir/libpkgconf.a +$_includedir/pkgconf + diff --git a/pkgconf/src/pkgconf-dist-doc.patch b/pkgconf/src/pkgconf-dist-doc.patch new file mode 100644 index 0000000..f871487 --- /dev/null +++ b/pkgconf/src/pkgconf-dist-doc.patch @@ -0,0 +1,11 @@ +--- pkgconf-0.9.12-56-g7e6fa32/Makefile.am.orig 2016-01-21 17:16:39.000000000 +0100 ++++ pkgconf-0.9.12-56-g7e6fa32/Makefile.am 2016-03-05 17:55:49.610012000 +0100 +@@ -72,7 +72,7 @@ + pkgconf_SOURCES = main.c getopt_long.c + noinst_HEADERS = getopt_long.h + +-dist_doc_DATA = README.md AUTHORS ++dist_doc_DATA = README.md AUTHORS NEWS COPYING + + m4datadir = $(datadir)/aclocal + m4data_DATA = pkg.m4 diff --git a/pkgconf/src/pkgconf-include-order.patch b/pkgconf/src/pkgconf-include-order.patch new file mode 100644 index 0000000..f4c6187 --- /dev/null +++ b/pkgconf/src/pkgconf-include-order.patch @@ -0,0 +1,15 @@ +--- pkgconf-0.9.12-56-g7e6fa32/libpkgconf/bsdstubs.c.orig 2016-01-21 17:16:39.000000000 +0100 ++++ pkgconf-0.9.12-56-g7e6fa32/libpkgconf/bsdstubs.c 2016-03-05 18:10:11.010001000 +0100 +@@ -17,11 +17,10 @@ + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + ++#include + #include + #include +- + #include +-#include + + #ifndef HAVE_STRLCPY + diff --git a/pkgconf/src/pkgconf-stdint_h.patch b/pkgconf/src/pkgconf-stdint_h.patch new file mode 100644 index 0000000..db8515f --- /dev/null +++ b/pkgconf/src/pkgconf-stdint_h.patch @@ -0,0 +1,28 @@ +--- pkgconf-0.9.12-56-g7e6fa32/libpkgconf/stdinc.h.orig 2016-01-21 17:16:39.000000000 +0100 ++++ pkgconf-0.9.12-56-g7e6fa32/libpkgconf/stdinc.h 2016-03-05 17:27:34.870004000 +0100 +@@ -27,7 +27,11 @@ + #include + #include + #include ++#ifdef HAVE_STDINT_H + #include ++#else ++#include ++#endif + + #ifdef _WIN32 + # define WIN32_LEAN_AND_MEAN +--- pkgconf-0.9.12-56-g7e6fa32/getopt_long.h.orig 2016-01-21 17:16:39.000000000 +0100 ++++ pkgconf-0.9.12-56-g7e6fa32/getopt_long.h 2016-03-05 17:28:49.420018000 +0100 +@@ -33,7 +33,11 @@ + #ifndef _GETOPT_LONG_H_ + #define _GETOPT_LONG_H_ + ++#ifdef HAVE_STDINT_H + #include ++#else ++#include ++#endif + + /* + * GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.