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

PKGBUILD

By: a guest on Apr 3rd, 2014  |  syntax: None  |  size: 1.34 KB  |  views: 145  |  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: Andrea Cattaneo <andrea.cattaneo.dev@gmail.com>
  2. pkgname=genymotion
  3. pkgver=2.2.0
  4. pkgrel=1
  5. pkgdesc="Complete set of tools that provides a virtual environment for Android."
  6. arch=('i686' 'x86_64')
  7. license="UNKNOWN"
  8. md5sums=('d79a01bf97565c7adf7714ae9345f5ce')
  9.  
  10. if test "$CARCH" == x86_64; then
  11.     _ARCH="x64"
  12.     md5sums+=('a2a28aa4a19413e2d1bd9572069921bc')
  13. else
  14.     _ARCH="x86"
  15.     md5sums+=('1a24af59198090d6f761f3dae1f49659')
  16. fi
  17.  
  18. url="http://www.genymotion.com/"
  19. depends=('virtualbox>=4.1.1' 'qtwebkit' 'libpng12' 'net-tools' 'qca' 'ffmpeg-compat' 'protobuf')
  20. optdepends=('android-sdk: for developers')
  21. install=genymotion.install
  22. source=("genymotion.desktop" "http://files2.genymotion.com/genymotion/genymotion-${pkgver}/genymotion-${pkgver}_${_ARCH}.bin")
  23.  
  24. build() {
  25.     cd $srcdir
  26.     chmod +x ${pkgname}-${pkgver}_${_ARCH}.bin
  27. }
  28.  
  29. package(){
  30.     cd $pkgdir
  31.     install -d "$pkgdir/usr"
  32.     yes | ${srcdir}/${pkgname}-${pkgver}_${_ARCH}.bin -d $pkgdir/usr/ &>/dev/null
  33.     rm usr/genymotion/libQt*
  34.     install -d "$pkgdir/usr/bin/"
  35.     ln -s /usr/genymotion/genymotion $pkgdir/usr/bin/genymotion
  36.     ln -s /usr/genymotion/genymotion-shell $pkgdir/usr/bin/genymotion-shell
  37.     install -Dm644 "$srcdir/genymotion.desktop" "$pkgdir/usr/share/applications/genymotion.desktop"
  38.     chown -R root:root $pkgdir/usr/genymotion
  39. }
clone this paste RAW Paste Data