Want more features on Pastebin? Sign Up, it's FREE!
Guest

android-ndk.install

By: marquicus on Jun 3rd, 2011  |  syntax: None  |  size: 0.54 KB  |  views: 374  |  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. post_install() {
  2.     getent group android >/dev/null 2>&1 ||  usr/sbin/groupadd -g 420 android &>/dev/null
  3.     echo You need to source /etc/profile or relogin to add the Android NDK tools to your path.
  4.     echo Add yourself to the android group so you can use the tools
  5. }
  6.  
  7. post_upgrade() {
  8.     post_install
  9. }
  10.  
  11. post_remove() {
  12.     if getent group android >/dev/null 2>&1; then
  13.         if pacman -Q android-sdk >/dev/null 2>&1; then
  14.             echo "android-sdk installed."
  15.         else
  16.             groupdel android
  17.         fi
  18.     fi
  19. }
clone this paste RAW Paste Data