Skip to content

Instantly share code, notes, and snippets.

@saik0
Last active August 29, 2015 14:04
Show Gist options
  • Save saik0/3ded9077863f667fae6c to your computer and use it in GitHub Desktop.
Save saik0/3ded9077863f667fae6c to your computer and use it in GitHub Desktop.
android-platform-20
_rev=r03
_sdkver=L
_sdkint=20
pkgname=android-platform-${_sdkint}
pkgver=${_sdkver}_${_rev}
pkgrel=2
pkgdesc="Android SDK Platform, API-${_sdkint}"
arch=('any')
url="http://developer.android.com/sdk/index.html"
license=('custom')
depends=('android-sdk')
options=('!strip')
source=("http://dl.google.com/android/repository/android-${_sdkver}_${_rev}.zip")
sha1sums=('76b6da426db06b2e2901dbc5e02d210ba83753c4')
package() {
mkdir -p "${pkgdir}/opt/android-sdk/platforms/"
mv "${srcdir}/android-${_sdkver}" "${pkgdir}/opt/android-sdk/platforms/android-${_sdkver}"
chmod -R ugo+rX "${pkgdir}/opt"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment