-
-
Save slokhorst/e342d5d7024fdd233ded7feb087f3b85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Zhang Hai <dreaming.in.code.zh@gmail.com> | |
# Contributor: Alexander F Rødseth <xyproto@archlinux.org> | |
# Contributor: Daniel Micay <danielmicay@gmail.com> | |
# Contributor: Gordin <9ordin@gmail.com> | |
pkgname=android-sdk | |
pkgver=26.0.2 | |
pkgrel=2 | |
pkgdesc='Google Android SDK' | |
arch=('x86_64') | |
url='https://developer.android.com/studio/releases/sdk-tools.html' | |
license=('custom') | |
depends=('java-environment' 'alsa-lib' 'openal' 'libstdc++5' 'libxv' 'mesa' 'sdl' | |
'ncurses' 'swt' 'zlib' 'fontconfig' 'libpulse') | |
optdepends=('android-emulator: emulator has become standalone since 25.3.0' | |
'android-sdk-platform-tools: adb, aapt, aidl, dexdump and dx' | |
'android-udev: udev rules for Android devices') | |
install="${pkgname}.install" | |
source=('https://dl.google.com/android/repository/sdk-tools-linux-3952940.zip' | |
"${pkgname}.sh" | |
"${pkgname}.csh" | |
"${pkgname}.conf" | |
'license.html') | |
sha1sums=('a438247f7d752b8e90f9e432b16b187fcff40c85' | |
'30a6ed281d54f8b7be08663a18c367f79c0d8d47' | |
'1bd09bf137fd09171cb426daa5748f117cfb3c25' | |
'145bdf3eb41a56574b289c1577a24bc47097ec83' | |
'bfb91be7e0b602d765b7a1fcaf0ce1b7e1a93faa') | |
package() { | |
install -Dm755 "${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh" | |
install -Dm755 "${pkgname}.csh" "${pkgdir}/etc/profile.d/${pkgname}.csh" | |
install -Dm644 "${pkgname}.conf" "${pkgdir}/etc/ld.so.conf.d/${pkgname}.conf" | |
install -Dm644 license.html "${pkgdir}/usr/share/licenses/${pkgname}/license.html" | |
install -d "${pkgdir}/opt/${pkgname}/platforms" | |
install -d "${pkgdir}/opt/${pkgname}/add-ons" | |
cp -a tools "${pkgdir}/opt/${pkgname}" | |
# Fix broken permissions | |
chmod -R o=g "${pkgdir}/opt/${pkgname}" | |
find "${pkgdir}/opt/${pkgname}" -perm 744 -exec chmod 755 {} + | |
} | |
# getver: https://developer.android.com/studio/releases/sdk-tools.html | |
# see https://dl.google.com/android/repository/repository2-1.xml for new versions | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment