Advertisement
marquicus

android-ndk.install

Jun 3rd, 2011
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement