diff options
author | Tad Fisher | 2017-06-20 11:19:15 -0700 |
---|---|---|
committer | Tad Fisher | 2017-06-20 11:19:15 -0700 |
commit | 93cd5ad600c58576d8b62fb8ab88ec0dbf225953 (patch) | |
tree | aa4c51eecdfdc3b0fce2d1aca0f580b3f74ad7d2 | |
parent | da44b615f875fedd64ee69712f76d09b35648515 (diff) | |
download | aur-93cd5ad600c58576d8b62fb8ab88ec0dbf225953.tar.gz |
Change WM_NAME to support alternate launcher
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 13 | ||||
-rw-r--r-- | android-studio-canary.desktop | 4 |
3 files changed, 15 insertions, 7 deletions
@@ -1,12 +1,13 @@ pkgbase = android-studio-canary pkgdesc = The Official Android IDE (Canary branch) pkgver = 3.0.0.3 - pkgrel = 1 + pkgrel = 2 url = http://tools.android.com/ arch = i686 arch = x86_64 license = APACHE makedepends = unzip + makedepends = zip depends = freetype2 depends = libxrender depends = libxtst @@ -16,7 +17,7 @@ pkgbase = android-studio-canary source = https://dl.google.com/dl/android/studio/ide-zips/3.0.0.3/android-studio-ide-171.4101728-linux.zip source = android-studio-canary.desktop sha256sums = 98ff0ed9093022d834c985e3457462e50eaf5898459d208e748edb1bd3f092af - sha256sums = 698430d3a2b3d6315ae22827e59c89e42c030089499f4e06bc32b3c92b796e35 + sha256sums = 60edb7937f6c0fd1ad724574ff3c63fa69cedd2fdfcedf788f39a443c76743b6 pkgname = android-studio-canary @@ -9,13 +9,13 @@ pkgname=android-studio-canary pkgver=3.0.0.3 -pkgrel=1 +pkgrel=2 _build=171.4101728 pkgdesc="The Official Android IDE (Canary branch)" arch=('i686' 'x86_64') url="http://tools.android.com/" license=('APACHE') -makedepends=('unzip') +makedepends=('unzip' 'zip') depends=('freetype2' 'libxrender' 'libxtst') optdepends=('gtk2: GTK+ look and feel' 'libgl: emulator support') @@ -23,7 +23,7 @@ options=('!strip') source=("https://dl.google.com/dl/android/studio/ide-zips/$pkgver/android-studio-ide-$_build-linux.zip" "$pkgname.desktop") sha256sums=('98ff0ed9093022d834c985e3457462e50eaf5898459d208e748edb1bd3f092af' - '698430d3a2b3d6315ae22827e59c89e42c030089499f4e06bc32b3c92b796e35') + '60edb7937f6c0fd1ad724574ff3c63fa69cedd2fdfcedf788f39a443c76743b6') if [ "$CARCH" = "i686" ]; then depends+=('java-environment') @@ -32,6 +32,13 @@ fi package() { cd $srcdir/android-studio + # Change the product name to produce a unique WM_CLASS attribute. + mkdir -p idea + unzip -p lib/resources.jar idea/AndroidStudioApplicationInfo.xml \ + | sed "s/\"Studio\"/\"Studio Canary\"/" >idea/AndroidStudioApplicationInfo.xml + zip -r lib/resources.jar idea + rm -r idea + # Install the application. install -d $pkgdir/{opt/$pkgname,usr/bin} cp -a bin gradle lib jre plugins $pkgdir/opt/$pkgname diff --git a/android-studio-canary.desktop b/android-studio-canary.desktop index 4300df238855..8df919a2e687 100644 --- a/android-studio-canary.desktop +++ b/android-studio-canary.desktop @@ -3,10 +3,10 @@ Version=1.0 Type=Application Name=Android Studio (Canary Branch) Exec=android-studio-canary %f -Icon=android-studio-canary +Icon=android-studio Comment=The Official Android IDE (Canary branch) Categories=Development;IDE; Terminal=false StartupNotify=true -StartupWMClass=jetbrains-studio +StartupWMClass=jetbrains-studio-canary MimeType=application/x-extension-iml; |