android-tools: build with go1.20

This commit is contained in:
Andrew J. Hesford 2023-08-25 08:50:16 -04:00
parent d840a05610
commit 4bef5d83ad

View file

@ -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