Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

PKGBUILD Aptana Studio 3.4.2

By: simone91 on Aug 19th, 2013  |  syntax: Bash  |  size: 3.11 KB  |  views: 106  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Sarkasper <echo a2FzcGVyLm1lbnRlbkBnbXguY29tCg==|base64 -d>
  2. # Contributor: Bruno Galeotti <bravox87 at gmail dot org>
  3. # Contributor: Jonathan Basniak <basniakgm112 at gmail dot com>
  4. # Upgrade to 3.1.1: Sean Burau <seanburau at gmail dot com>
  5. # Upgrade to 3.0.1: Simon Luijk <simon dot luijk gmail dot com>
  6. # Upgrade to 3.2.0: Saulius Lukauskask <luksaulius at gmail dot com>
  7. pkgname=aptana-studio
  8. _pkgname=aptana
  9. pkgver=3.4.2
  10. pkgrel=1
  11. pkgdesc="The professional, open source development tool for the open web."
  12. arch=("i686" "x86_64")
  13. url="http://www.aptana.com/"
  14. license=("GPLv3")
  15. depends=("gtk2" "java-runtime" "libjpeg-turbo" "libpng12" "net-tools")
  16. optdepends=("xulrunner192: Legacy XULRunner interface")
  17. makedepends=("unzip")
  18. options=(!strip)
  19. replaces=("aptana")
  20. conflicts=("aptana")
  21. backup=("usr/share/aptana/AptanaStudio3.ini")
  22.  
  23. if [ "$CARCH" = "i686" ]; then
  24. source=("http://download.aptana.com/studio3/standalone/$pkgver/linux/Aptana_Studio_3_Setup_Linux_x86_$pkgver.zip"
  25. "aptana.sh"
  26. "aptana.desktop"
  27. "aptana-execfiles.txt")    
  28. md5sums=('d43baeceba6c92a64de186668dc3cbcd'
  29.          '6b7b28fd865cdaffb66ef5f2a3e175d3'
  30.          'e297d32ab375b84eaaabfca7bc012752'
  31.          '859173402304e8bfa02eb4981c81d3d9')
  32. noextract=("Aptana_Studio_3_Setup_Linux_x86_$pkgver.zip")
  33. _zipname="Aptana_Studio_3_Setup_Linux_x86_$pkgver.zip"
  34.  
  35. elif [ "$CARCH" = "x86_64" ]; then
  36. source=("http://download.aptana.com/studio3/standalone/$pkgver/linux/Aptana_Studio_3_Setup_Linux_x86_64_$pkgver.zip"
  37. "aptana.sh"
  38. "aptana.desktop"
  39. "aptana-execfiles.txt")
  40. md5sums=('bfce9f2fab11f73bb173765ebfc6b8bc'
  41.          '6b7b28fd865cdaffb66ef5f2a3e175d3'
  42.          'e297d32ab375b84eaaabfca7bc012752'
  43.          '859173402304e8bfa02eb4981c81d3d9')
  44. noextract=("Aptana_Studio_3_Setup_Linux_x86_64_$pkgver.zip")
  45. _zipname="Aptana_Studio_3_Setup_Linux_x86_64_$pkgver.zip"
  46. fi
  47.  
  48. package() {
  49. echo "Extracting $_zipname"
  50. unzip -q $_zipname
  51.  
  52. local _instpath="/usr/share"
  53. local _file="none"
  54.  
  55. cd "$srcdir" || return 1
  56. mv "$srcdir/Aptana_Studio_${pkgver%*.*.*}" "$srcdir/$_pkgname" || return 1
  57.  
  58. # Patch the .ini file for the proper xulrunner version
  59. #echo "-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-1.9.2" >> "$srcdir/$_pkgname/AptanaStudio3.ini"
  60.  
  61. # Install Dirs
  62. find "$_pkgname" -type d -exec install -d "{}" "$pkgdir/$_instpath/{}" \; || return 1
  63.  
  64. # Install Files
  65. install -m755 -d "$pkgdir/$_instpath" || return 1
  66. find "$_pkgname" -type f \
  67. $(cat "$startdir/$_pkgname-execfiles.txt" | sed -e "s/^/-not -path /" | sed -e "N;s:\n: :g") \
  68. -exec install -Dm644 "{}" "$pkgdir/$_instpath/{}" \; || return 1
  69.  
  70. # Install Executables
  71. for _file in $(cat "$startdir/$_pkgname-execfiles.txt"); do
  72. install -Dm755 "$_file" "$pkgdir/$_instpath/$_file" || return 1
  73. done || return 1
  74.  
  75. # install misc
  76. install -d "$pkgdir/usr/bin" "$pkgdir/$_instpath"/{applications,pixmaps} || return 1
  77. install -m755 "$startdir/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname" || return 1
  78. install -m644 "$startdir/aptana.desktop" "$pkgdir/$_instpath/applications/" || return 1
  79. ln -s "$_instpath/$_pkgname/icon.xpm" "$pkgdir/$_instpath/pixmaps/$_pkgname.xpm" || return 1
  80. }
clone this paste RAW Paste Data