blob: db00b50f12f50ca5f72b16197e9227834b042687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Hai Zhang <dreaming.in.code.zh@gmail.com>
# Contributor: Vlad M. <vlad@archlinux.net>
# Contributor: Gordin <9ordin @t gmail dot com>
# Contributor: Christoph Bayer <chrbayer@criby.de>
pkgname=android-sdk-platform-tools
pkgver=31.0.3
pkgrel=1
pkgdesc='Platform-Tools for Google Android SDK (adb and fastboot)'
arch=('x86_64')
url='http://developer.android.com/sdk/index.html'
license=('custom')
depends=('zlib' 'ncurses')
provides=('adb' 'android-tools')
conflicts=('adb')
install="${pkgname}.install"
source=("https://dl.google.com/android/repository/platform-tools_r${pkgver}-linux.zip"
"adb.service"
"license.html")
sha1sums=('f09581347ed39978abb3a99c6bb286de6adc98ef'
'49a40c129199844603afe71fce69c0908e062393'
'bfb91be7e0b602d765b7a1fcaf0ce1b7e1a93faa')
package() {
install -Dm644 "${srcdir}/adb.service" "${pkgdir}/usr/lib/systemd/system/adb.service"
install -Dm644 "${srcdir}/license.html" "${pkgdir}/usr/share/licenses/${pkgname}/license.html"
install -d "${pkgdir}/etc/profile.d"
echo 'export PATH="${PATH}:/opt/android-sdk/platform-tools"' >"${pkgdir}/etc/profile.d/${pkgname}.sh"
echo 'setenv PATH "${PATH}:/opt/android-sdk/platform-tools"' >"${pkgdir}/etc/profile.d/${pkgname}.csh"
chmod 755 "${pkgdir}/etc/profile.d/${pkgname}".{csh,sh}
install -d "${pkgdir}/opt/android-sdk/"
cp -a "${srcdir}/platform-tools" "${pkgdir}/opt/android-sdk/platform-tools"
chmod -R +rX "${pkgdir}/opt/android-sdk/platform-tools"
}
|