diff options
Diffstat (limited to 'vars')
-rw-r--r-- | vars/gdk.vars | 13 | ||||
-rw-r--r-- | vars/glib.vars | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/vars/gdk.vars b/vars/gdk.vars new file mode 100644 index 00000000..16d03deb --- /dev/null +++ b/vars/gdk.vars @@ -0,0 +1,13 @@ +# +# set -o errexit -o noglob are assumed. +# + +pkg_gdk_install_pkgconfig_post() { + local _pc_path; + for _pc_path in $(find "${PKG_DESTDIR}"/lib/pkgconfig -name \*.pc); do + sed -i"" -e '/^Requires:\s\+gobject-2.0$/s/^.*$/& gio-2.0/' \ + "${_pc_path}"; + done; +}; + +# vim:filetype=sh diff --git a/vars/glib.vars b/vars/glib.vars index 86de74ee..fea598c4 100644 --- a/vars/glib.vars +++ b/vars/glib.vars @@ -5,7 +5,7 @@ pkg_glib_install_pkgconfig_post() { local _pc_path; for _pc_path in $(find "${PKG_DESTDIR}"/lib/pkgconfig -name \*.pc); do - sed -i"" -e '/^Libs:\s/s/-L\${libdir}/& -lffi -lpcre -lz/' \ + sed -i"" -e '/^Libs:/s/^\(Libs:\s\+-L\${libdir}\)\s\+\(.\+\)$/\1 \2 -lffi -lpcre -lz/' \ "${_pc_path}"; done; }; |