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

aptana-studio 3.0.0

By: a guest on Apr 29th, 2011  |  syntax: None  |  size: 2.69 KB  |  views: 184  |  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. # Contributor: Bruno Galeotti <bravox87 at gmail dot org>
  2. # Maintainer: Jorge Pizarro Callejas <jpizarro at inf dot utfsm dot cl>
  3. # Upgrade to 3.0.0: Tomasz Cetnarowski <tomasz dot cet at gmail dot com>
  4. pkgname=aptana-studio
  5. _pkgname=aptana
  6. pkgver=3.0.0
  7. pkgrel=1
  8. pkgdesc="The professional, open source development tool for the open web."
  9. arch=("i686" "x86_64")
  10. url="http://www.aptana.com/"
  11. license=("GPLv3")
  12. depends=("gtk2" "jre" "unzip" "xulrunner")
  13. options=(!strip)
  14. replaces=("aptana")
  15. conflicts=("aptana")
  16.  
  17. if [ "$CARCH" = "i686" ]; then
  18.     source=("http://download.aptana.com/studio3/standalone/3.0.0/linux/Aptana_Studio_3_Setup_Linux_x86_$pkgver.zip"
  19.             "aptana.sh"
  20.             "aptana.desktop"
  21.             "aptana-execfiles.txt")
  22.     md5sums=("6feff06de069769c6b22354996542706"
  23.              "6b7b28fd865cdaffb66ef5f2a3e175d3"
  24.              "b59a7b242f51b66aa5b8f5d83bffc159"
  25.              "d8bb2d16f20015e7da175d5e200783ee")
  26.     noextract=("Aptana_Studio_3_Setup_Linux_x86_$pkgver.zip")
  27.     _zipname="Aptana_Studio_3_Setup_Linux_x86_$pkgver.zip"
  28. elif [ "$CARCH" = "x86_64" ]; then
  29.     source=("http://download.aptana.com/studio3/standalone/3.0.0/linux/Aptana_Studio_3_Setup_Linux_x86_64_$pkgver.zip"
  30.             "aptana.sh"
  31.             "aptana.desktop"
  32.             "aptana-execfiles.txt")
  33.     md5sums=("b42a7e1ae54fea2644d5bc6358b5fd2f"
  34.              "6b7b28fd865cdaffb66ef5f2a3e175d3"
  35.              "b59a7b242f51b66aa5b8f5d83bffc159"
  36.              "d8bb2d16f20015e7da175d5e200783ee")
  37.     noextract=("Aptana_Studio_3_Setup_Linux_x86_64_$pkgver.zip")
  38.     _zipname="Aptana_Studio_3_Setup_Linux_x86_64_$pkgver.zip"
  39. fi
  40.  
  41. build() {
  42.     jar xf $_zipname
  43.  
  44.     local _instpath="/usr/share"
  45.     local _file="none"
  46.  
  47.     cd "$srcdir" || return 1
  48.  
  49.     mv "$srcdir/Aptana Studio ${pkgver%*.*.*}" "$srcdir/$_pkgname" || return 1
  50.  
  51.     # Install Dirs
  52.     find "$_pkgname" -type d -exec install -d "{}" "$pkgdir/$_instpath/{}" \; || return 1
  53.  
  54.     # Install Files
  55.     install -m755 -d "$pkgdir/$_instpath" || return 1
  56.     find "$_pkgname" -type f \
  57.             $(cat "$startdir/$_pkgname-execfiles.txt" | sed -e "s/^/-not -path /" | sed -e "N;s:\n: :g") \
  58.             -exec install -Dm644 "{}" "$pkgdir/$_instpath/{}" \; || return 1
  59.  
  60.     # Install Executables
  61.     for _file in $(cat "$startdir/$_pkgname-execfiles.txt"); do
  62.             install -Dm755 "$_file" "$pkgdir/$_instpath/$_file" || return 1
  63.     done || return 1
  64.  
  65.     # install misc
  66.     install -d "$pkgdir/usr/bin" "$pkgdir/$_instpath"/{applications,pixmaps} || return 1
  67.     install -m755 "$startdir/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname" || return 1
  68.     install -m644 "$startdir/aptana.desktop" "$pkgdir/$_instpath/applications/" || return 1
  69.     ln -s "$_instpath/$_pkgname/icon.xpm" "$pkgdir/$_instpath/pixmaps/$_pkgname.xpm" || return 1
  70. }