Files
2021-04-01 05:38:07 -04:00

49 lines
1.7 KiB
Tcl

# -*- 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
PortSystem 1.0
name android-platform-tools
version 31.0.1
set ver_hash d027ce0f9f214a4bd575a73786b44d8ccf7e7516
# Starting from 30.0.1 there's this long string in the file name. Probably commit hash.
# Can be found in https://dl-ssl.google.com/android/repository/repository2-1.xml
categories java devel
maintainers nomaintainer
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
platforms darwin
supported_archs x86_64
master_sites https://dl.google.com/android/repository
distname ${ver_hash}.platform-tools_r${version}-darwin
use_zip yes
checksums rmd160 bf3c5400272541beaeb220d1032c396bc79e2817 \
sha256 09e7c56bb1f9f5adf5f4cc6a868d9a46429e2de7ee93879b34c4ee8211e7d401 \
size 13421165
use_configure no
worksrcdir platform-tools
build {}
destroot {
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}
}
}
livecheck.url https://developer.android.com/studio/releases/platform-tools.html
livecheck.regex <h4 id=".+">(\[0-9\.\]+)