diff --git a/srcpkgs/valabind/patches/cross.patch b/srcpkgs/valabind/patches/cross.patch new file mode 100644 index 00000000000..021c1b556bd --- /dev/null +++ b/srcpkgs/valabind/patches/cross.patch @@ -0,0 +1,12 @@ +--- meson.build ++++ meson.build +@@ -26,7 +26,8 @@ libvala_dep = dependency('libvala-@0@'.format(libvala_version)) + glib_dep = dependency('glib-2.0') + gobject_dep = dependency('gobject-2.0') + +-valaccodegen_dep = cc.find_library('valaccodegen', dirs : [libvala_dep.get_pkgconfig_variable('pkglibdir')]) ++cc_sysroot = run_command(cc.cmd_array()[0], '-print-sysroot').stdout().strip() ++valaccodegen_dep = cc.find_library('valaccodegen', dirs : [cc_sysroot + libvala_dep.get_pkgconfig_variable('pkglibdir')]) + + executable( + 'valabind', diff --git a/srcpkgs/valabind/template b/srcpkgs/valabind/template index 76bd156b8bd..c79c969ab9b 100644 --- a/srcpkgs/valabind/template +++ b/srcpkgs/valabind/template @@ -1,8 +1,8 @@ # Template file for 'valabind' pkgname=valabind version=1.7.1 -revision=1 -build_style=gnu-makefile +revision=2 +build_style=meson hostmakedepends="pkg-config vala-devel git" makedepends="vala-devel glib-devel" depends="vala-devel>=0.26" @@ -12,5 +12,3 @@ license="GPL-3.0-or-later" homepage="http:s//radare.org/r/" distfiles="https://github.com/radare/valabind/archive/${version}.tar.gz" checksum=b463b18419de656e218855a2f30a71051f03a9c4540254b4ceaea475fb79102e - -nocross="Unknown option -lvalaccodegen"