Browse code

First commit

Qurban Ullah authored on 27/02/2018 18:16:32
Showing 4 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,37 @@
1
+# Generated by mksrcinfo v8
2
+# Wed May 11 21:19:14 UTC 2016
3
+pkgbase = android-studio
4
+	pkgdesc = A new Android development environment based on IntelliJ IDEA.
5
+	pkgver = 2.1.1.0
6
+	pkgrel = 1
7
+	url = http://developer.android.com/sdk/installing/studio.html
8
+	install = android-studio.install
9
+	arch = i686
10
+	arch = x86_64
11
+	license = APACHE
12
+	makedepends = unzip
13
+	depends = java-environment
14
+	depends = python
15
+	depends = ttf-font
16
+	depends = fontconfig
17
+	depends = libxrender
18
+	depends = mesa
19
+	optdepends = android-google-repository
20
+	optdepends = android-platform
21
+	optdepends = android-sdk
22
+	optdepends = android-sdk-platform-tools
23
+	optdepends = android-sdk-build-tools
24
+	optdepends = android-sources
25
+	optdepends = android-support
26
+	optdepends = android-support-repository
27
+	conflicts = android-studio-beta
28
+	conflicts = android-studio-dev
29
+	conflicts = android-studio-canary
30
+	options = !strip
31
+	source = https://dl.google.com/dl/android/studio/ide-zips/2.1.1.0/android-studio-ide-143.2821654-linux.zip
32
+	source = android-studio.desktop
33
+	sha512sums = 9822e9b1b30f1af9cd06af5628fb7419de35a341f5366647922d91a76083ef50ac4b6059dc77e4598ea92eb517002be51c7c0de42c2bec3d51565318d14077a0
34
+	sha512sums = 7c1ab152b3f26a0a4796c085bb7bf66aa4711a010910636c0c82a37609155c819b21a732fc3874b55e7d443c989c46f29d51ed54538795829c8eb835308b5aaa
35
+
36
+pkgname = android-studio
37
+
0 38
new file mode 100755
... ...
@@ -0,0 +1,41 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgname=android-studio
6
+_realname=android-studio-ide
7
+pkgver=2.3.3.0
8
+pkgrel=1
9
+_build=162.4069837
10
+pkgdesc="The official Android IDE (Stable branch)"
11
+arch=('i686' 'x86_64')
12
+url="http://tools.android.com/"
13
+license=('APACHE')
14
+makedepends=('unzip')
15
+depends=('alsa-lib' 'freetype2' 'libxrender' 'libxtst')
16
+optdepends=('gtk2: GTK+ look and feel'
17
+            'libgl: emulator support')
18
+options=('!strip')
19
+source=("https://dl.google.com/dl/android/studio/ide-zips/$pkgver/android-studio-ide-$_build-linux.zip"
20
+        "$pkgname.desktop")
21
+sha256sums=('1383cfd47441e5f820b6257a1bdd683e0e980bc76c7f2027ef84dc2e6ad2f17f'
22
+            '73cd2dde1d0f99aaba5baad1e2b91c834edd5db3c817f6fb78868d102360d3c4')
23
+
24
+if [ "$CARCH" = "i686" ]; then
25
+    depends+=('java-environment')
26
+fi
27
+
28
+package() {
29
+  cd $srcdir/$pkgname
30
+
31
+  # Install the application
32
+  install -d $pkgdir/{opt/$pkgname,usr/bin}
33
+  cp -a bin gradle lib jre plugins $pkgdir/opt/$pkgname
34
+  ln -s /opt/android-studio/bin/studio.sh $pkgdir/usr/bin/$pkgname
35
+
36
+  # Add the icon and desktop file
37
+  install -Dm644 bin/studio.png $pkgdir/usr/share/pixmaps/$pkgname.png
38
+  install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
39
+
40
+  chmod -R ugo+rX $pkgdir/opt
41
+}
0 42
new file mode 100755
... ...
@@ -0,0 +1,12 @@
1
+[Desktop Entry]
2
+Version=1.0
3
+Type=Application
4
+Name=Android Studio
5
+Exec=android-studio %f
6
+Icon=android-studio
7
+Comment=Develop with pleasure!
8
+Categories=Development;IDE;
9
+Terminal=false
10
+StartupNotify=true
11
+StartupWMClass=jetbrains-studio
12
+MimeType=application/x-extension-iml;
0 13
new file mode 100755
... ...
@@ -0,0 +1,11 @@
1
+post_install() {
2
+  update-desktop-database -q
3
+}
4
+
5
+post_upgrade() {
6
+  update-desktop-database -q
7
+}
8
+
9
+post_remove() {
10
+  update-desktop-database -q
11
+}