diff --git a/srcpkgs/android-tools/template b/srcpkgs/android-tools/template index 5b0156579fd..351bdfef88d 100644 --- a/srcpkgs/android-tools/template +++ b/srcpkgs/android-tools/template @@ -4,7 +4,8 @@ version=34.0.1 revision=3 archs="armv* aarch64* x86_64* i686* ppc64le*" build_style=cmake -hostmakedepends="perl go protobuf pkg-config" +configure_args="-DGO_EXECUTABLE=/usr/bin/go1.20" +hostmakedepends="perl go1.20 protobuf pkg-config" makedepends="gtest-devel zlib-devel libusb-devel pcre2-devel liblz4-devel libzstd-devel protobuf-devel brotli-devel" depends="python3" @@ -19,6 +20,8 @@ if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then configure_args="-DCMAKE_CXX_STANDARD_LIBRARIES=-latomic" fi +export GOTOOLCHAIN=go1.20 + post_install() { # zsh's built in works, while this one doesn't rm -f $DESTDIR/usr/share/zsh/site-functions/_adb