blob: 6dc1ea1b486efc4276932f4171422653eeedfe24 (
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
37
38
39
|
# 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=35.0.2
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'
'package.xml')
sha1sums=('f6406982a79d67e40b1ca3cb9e5e2cc783c0f232'
'49a40c129199844603afe71fce69c0908e062393'
'bfb91be7e0b602d765b7a1fcaf0ce1b7e1a93faa'
'18ff9550098c8ad30d2ed773652916895aa2a32b')
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"
install -Dm755 'package.xml' "${pkgdir}/opt/android-sdk/platform-tools/package.xml"
}
|