Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

android-sdk PKGBUILD

By: a guest on Jan 31st, 2011  |  syntax: Bash  |  size: 1.69 KB  |  views: 156  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Daniel Micay <danielmicay@gmail.com>
  2. # Contributor: Gordin <9ordin @t gmail dot com>
  3.  
  4. pkgname=android-sdk
  5. pkgver=r09
  6. pkgrel=2
  7. pkgdesc='Google Android SDK'
  8. arch=('i686' 'x86_64')
  9. url="http://developer.android.com/sdk/index.html"
  10. license=('custom')
  11. depends=('java-runtime' 'alsa-lib' 'openal' 'libstdc++5' 'libxv' 'ncurses'
  12.          'sdl' 'zlib')
  13.  
  14. [[ $CARCH = x86_64 ]] && depends=('java-runtime' 'lib32-alsa-lib'
  15.                                   'lib32-openal' 'lib32-libstdc++5'
  16.                                   'lib32-libxv' 'lib32-ncurses' 'lib32-sdl'
  17.                                   'lib32-zlib')
  18.  
  19. install=$pkgname.install
  20. optdepends=('udev-android-rules: udev rules for Android devices')
  21. source=(http://dl.google.com/android/${pkgname}_$pkgver-linux_x86.tgz
  22.         $pkgname.png
  23.         $pkgname.desktop
  24.         $pkgname.sh
  25.         $pkgname.csh)
  26.  
  27. sha256sums=('ad908a58febefcfbc206bfcfdb70d4b8379440ebc19c1e60d717bfdefa3a1ca4'
  28.             '98be44fabc7f72bb6a3571335f1b4749c361878f615e0ffd27bebec4ae2bc026'
  29.             '8a4df00d324ab33ec44c370bc061d16b2203dfea9133d89713f9c0b156aa41b4'
  30.             'a967e6fd7cdaf29e67e7353b49f5c7f9914527cc63535105f585eb229264c670'
  31.             '18be1925f9fe4ee52a0d4f0e5531f7b672ee85bed61049adeb59db0fb18beb40')
  32.  
  33. package() {
  34.   mkdir -p ${pkgdir}/etc/profile.d/
  35.   cp "${pkgname}.sh" "${pkgname}.csh" ${pkgdir}/etc/profile.d/
  36.   cd "$pkgdir"
  37.   mkdir -p opt etc/profile.d
  38.   cp -a "$srcdir/$pkgname-linux_x86" opt/$pkgname
  39.   chgrp 420 opt/$pkgname
  40.   chmod g+w opt/$pkgname
  41.   install -Dm655 "$srcdir/$pkgname.png" usr/share/pixmaps/$pkgname.png
  42.   install -Dm655 "$srcdir/$pkgname.desktop" \
  43.     usr/share/applications/$pkgname.desktop
  44. }