blob: 8e3a8b45e0b693c100d12d4b00d8ad2857abe38c (
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
|
#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.8.0
pkgrel=1
pkgdesc="Complete set of tools that provides a virtual environment for Android."
arch=('x86_64')
url="http://www.genymotion.com/"
optdepends=(virtualbox)
makedepends=(wget)
install=$pkgname.install
license=('custom')
options=(!strip)
_ARCH="x64"
DLAGENTS=("https::/usr/bin/wget -U "Mozilla" %u")
source=("genymotion.desktop"
"https://dl.genymotion.com/releases/genymotion-$pkgver/$pkgname-${pkgver}-linux_$_ARCH.bin")
sha512sums=('42f629d6413e4e481ef68d019ec3071515b45d01fdb004a545c8b977a9bf2439581ca8a67ad7dead9a12a0d24e8e46ba02c5dc47abd76597451b09847cf5d78b'
'ce9c06d7a5200057576b275318dd56fa186f36bfcad31927e37ec399be3e4840da54486171c0c379118f9168c767a69527d7901f6c3c75f9f790bfa92b154880')
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
}
|