blob: 469a3e376e848394aef399e33768015b6930123f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#Maintainer: Jay Ta'ala <jay@jaytaala.com>
#Contributor: Amos Onn <amosonn@gmail.com>
#Contributor: Ekin Dursun <ekindursun@gmail.com>
#Contributor: danyf90 <daniele.formichelli@gmail.com>
#Contributor: syncrtl64 <syncrtl64@gmail.com>
#Contributor: Andrea Cattaneo <andrea.cattaneo.dev@gmail.com>
pkgname=genymotion
pkgver=3.3.2
pkgrel=1
pkgdesc="Complete set of tools that provides a virtual environment for Android."
arch=('x86_64')
url="http://www.genymotion.com/"
depends=('libpng' 'net-tools' 'protobuf' 'qca-qt5' 'qt5-script' 'qt5-webkit' 'virtualbox')
makedepends=('wget')
install=$pkgname.install
license=('custom')
_ARCH="x64"
DLAGENTS=("https::/usr/bin/wget -U "Mozilla" %u")
source=("virtualbox.conf"
"genymotion.desktop"
"https://dl.genymotion.com/releases/genymotion-$pkgver/$pkgname-${pkgver}-linux_$_ARCH.bin")
sha512sums=('63eba0963b3344ea7e7a0035560406899d878a0761cddef9853bec95deb9812b221e98f446f240070d6448d61d6ecbcf7a990bcd52863660e8f21cf9a98c0e1d'
'42f629d6413e4e481ef68d019ec3071515b45d01fdb004a545c8b977a9bf2439581ca8a67ad7dead9a12a0d24e8e46ba02c5dc47abd76597451b09847cf5d78b'
'ae3bfd2c4eefceb04cd67256b291e3c7bee3c3d0e212add92086709e5fd60bee4789d2ea80732bacbcad880be472e507470afd635cb766903664ea0815ed0205')
package(){
cd $srcdir
install -d $pkgdir/opt
install -d $pkgdir/opt/$pkgname
src="$pkgname-${pkgver}-linux_$_ARCH.bin"
# Retrieve line number where tar.bzip2 binary begins
skip=$(awk '/^__TARFILE_FOLLOWS__/ { print NR + 1; exit 0; }' "$src")
[ $? -ne 0 ] && return 1
# Untar following archive
tail -n +$skip "$src" \
| tar -xj --no-same-owner -C "$pkgdir/opt/$pkgname"
[ ${PIPESTATUS[0]} -ne 0 -o ${PIPESTATUS[1]} -ne 0 ] && return 1
install -d $pkgdir/usr/bin
ln -s /opt/$pkgname/genymotion $pkgdir/usr/bin/genymotion
ln -s /opt/$pkgname/genymotion-shell $pkgdir/usr/bin/genymotion-shell
ln -s /opt/$pkgname/player $pkgdir/usr/bin/genymotion-player
ln -s /opt/$pkgname/gmtool $pkgdir/usr/bin/gmtool
install -Dm644 $srcdir/genymotion.desktop $pkgdir/usr/share/applications/genymotion.desktop
chown -R root:root $pkgdir/opt/$pkgname
install -Dm644 $srcdir/virtualbox.conf $pkgdir/etc/modules-load.d/virtualbox.conf
}
|