summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 63d51f4ab5b14644e432f83aca1e89cadd6622f5 (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
_rev=r02
_sdkver=8.0.0
_sdkint=26
pkgname=android-platform-${_sdkint}
pkgver=${_sdkver}_${_rev}
pkgrel=1
pkgdesc="Android SDK Platform, API-${_sdkint}"
arch=('any')
url="http://developer.android.com/sdk/index.html"
license=('custom')
depends=('android-sdk' 'android-sdk-platform-tools')
conflicts=("android-platform-${_sdkint}")
options=('!strip')

source=("https://dl.google.com/android/repository/platform-${_sdkint}_${_rev}.zip")
sha1sums=('e4ae5d7aa557a3c827135838ee400da8443ac4ef')

package() {
  install -Ddm755 "${pkgdir}/opt/android-sdk/platforms/"
  cp -dr --no-preserve=ownership "${srcdir}/android-${_sdkver}" \
      "${pkgdir}/opt/android-sdk/platforms/android-${_sdkint}"

  chmod -R ugo+rX "${pkgdir}/opt"
}