diff --git a/srcpkgs/roccat-tools/template b/srcpkgs/roccat-tools/template index 618947fc9aa..86db6cf5779 100644 --- a/srcpkgs/roccat-tools/template +++ b/srcpkgs/roccat-tools/template @@ -5,8 +5,8 @@ revision=1 build_style=cmake configure_args=" -DDEVICES=arvo;isku;iskufx;kiro;kone;koneplus;konepure;konepuremilitary;konepureoptical;konextd;konextdoptical;kovaplus;kova2016;lua;nyth;pyra;ryosmk;ryosmkfx;ryostkl;savu;skeltr;sova;suora;tyon - -DWITH_LUA=5.3 - -DUDEVDIR=/usr/lib/udev/rules.d -DCMAKE_MODULE_PATH=/usr/lib/cmake" + -DWITH_LUA=5.3 -DUDEVDIR=/usr/lib/udev/rules.d + -DCMAKE_MODULE_PATH=${XBPS_CROSS_BASE}/usr/lib/cmake" make_dirs="/var/lib/roccat 2770 root roccat" hostmakedepends="pkg-config glib-devel" makedepends="lua-devel gtk+-devel libgaminggear-devel dbus-glib-devel @@ -18,8 +18,12 @@ homepage="https://roccat.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/roccat/${pkgname}/${pkgname}-${version}.tar.bz2" checksum=a6e21315c06e072fcea79c185518c8d2c8f19ed9681633613f26085319bdfd95 system_groups="_roccat" -nocross="Compiler tries to run compiled code for testing - https://travis-ci.org/void-linux/void-packages/jobs/477591350#L1740" + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" dbus-glib-devel" + # Project tries to use TRY_RUN(), pass the result to be used as cache + configure_args+=" -DRUN_RESULT_VAR=0" +fi pre_install() { sed -i -e 's/GROUP="roccat"/GROUP="_roccat"/g' \