Skip to content

Instantly share code, notes, and snippets.

@farwayer
Last active December 15, 2015 06:49
Show Gist options
  • Save farwayer/e37ed9a1bd199857fe1c to your computer and use it in GitHub Desktop.
Save farwayer/e37ed9a1bd199857fe1c to your computer and use it in GitHub Desktop.
# Maintainer: danyf90 <daniele.formichelli@gmail.com>
# Contributor: Andrea Cattaneo <andrea.cattaneo.dev@gmail.com>
pkgname=genymotion
pkgver=2.6.0
pkgrel=2
pkgdesc="Complete set of tools that provides a virtual environment for Android."
arch=('i686' 'x86_64')
license="UNKNOWN"
url="http://www.genymotion.com/"
depends=('virtualbox' 'icu<57' 'net-tools' 'ffmpeg' 'ffmpeg-compat' 'qt5-webkit' 'qt5-script' 'qt5-svg')
install=$pkgname.install
sha512sums=('48e9bafe1d64b688c51eceb8d129f44d690060ff9a6d82eefcf3295f7834516ce62439faf4f4454287f594fc410aafbafd30a43537ea3d295c42bee8e4e03ac7')
if [[ $CARCH == x86_64 ]]; then
_ARCH="x64"
sha512sums+=('455b9e6cdb1752b0390638d7b2856ea83248d9a9e5018760a4b9d9103d01956b4f1dc0fe5769579893ffe832a659117c7f0bcfba88120b9822e613ddc4d9e42f')
else
_ARCH="x86"
sha512sums+=('637df7cd843044c1d3be1abc30a248d78649a57b65fb5386add937b0f4ee52e76a9e3f3184aa8d47969235f8a6861f315edb0cb45bdc83035f1f26ecb0491f8b')
fi
source=("genymotion.desktop"
"http://files2.genymotion.com/genymotion/genymotion-$pkgver/$pkgname-${pkgver}-linux_$_ARCH.bin")
package(){
cd $srcdir
install -d $pkgdir/opt
yes | bash ./$pkgname-${pkgver}-linux_$_ARCH.bin -d $pkgdir/opt
rm $pkgdir/opt/genymotion/libQt*
rm $pkgdir/opt/genymotion/libavutil.so.*
rm $pkgdir/opt/genymotion/libcrypto.so.*
rm $pkgdir/opt/genymotion/libicu*.so.*
rm $pkgdir/opt/genymotion/libssl.so.*
rm $pkgdir/opt/genymotion/libswscale.so.*
rm -rf $pkgdir/opt/genymotion/imageformats
rm -rf $pkgdir/opt/genymotion/platforms
rm -rf $pkgdir/opt/genymotion/sqldrivers
ln -s /usr/lib/qt/plugins/imageformats $pkgdir/opt/genymotion/imageformats
ln -s /usr/lib/qt/plugins/platforms $pkgdir/opt/genymotion/platforms
ln -s /usr/lib/qt/plugins/sqldrivers $pkgdir/opt/genymotion/sqldrivers
install -d $pkgdir/usr/bin
ln -s /opt/genymotion/genymotion $pkgdir/usr/bin/genymotion
ln -s /opt/genymotion/genymotion-shell $pkgdir/usr/bin/genymotion-shell
ln -s /opt/genymotion/player $pkgdir/usr/bin/genymotion-player
install -Dm644 $srcdir/genymotion.desktop $pkgdir/usr/share/applications/genymotion.desktop
chown -R root:root $pkgdir/opt/genymotion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment