SHARE
TWEET

android-ndk.install

marquicus Jun 3rd, 2011 378 Never
  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. }
RAW Paste Data
Top