# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
name android-platform-tools
maintainers {yan12125 @yan12125} openmaintainer
homepage https://developer.android.com/studio/
description Platform-Tools for Google Android SDK (adb and fastboot)
long_description ${description}
# different files are covered with different licenses. See
# platform-tools/NOTICE.txt for details
license BSD MIT NCSA Apache-2 GPL-2 LGPL-2.1
master_sites https://dl.google.com/android/repository
distname platform-tools_r${version}-darwin
checksums rmd160 ae7f5616c026a4ceb3c3092a57bb569a4692f88b \
sha256 3bc833ae3f4bd831af03811f2d1be540c2eb2eb9a17de9398b0a06dc5af6fa84 \
worksrcdir platform-tools
set sdk_dir ${prefix}/share/java/android-sdk-macosx
xinstall -d ${destroot}${sdk_dir}
file copy ${worksrcpath} ${destroot}${sdk_dir}/platform-tools
foreach bin {adb fastboot} {
ln -s ${sdk_dir}/platform-tools/${bin} ${destroot}${prefix}/bin/${bin}