Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

aptana-studio 2.04 aur PKGBUILD

By: a guest on May 11th, 2010  |  syntax: None  |  size: 2.56 KB  |  hits: 233  |  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. pkgname=aptana-studio
  3. _pkgname=aptana
  4. pkgver=2.0.4
  5. pkgrel=1
  6. pkgdesc="JavaScript-focused IDE for building dynamic web applications."
  7. arch=("i686" "x86_64")
  8. url="http://www.aptana.com/"
  9. license=("EPL")
  10. depends=("gtk2" "java-environment>=5" "unzip" "xulrunner")
  11. replaces=("aptana")
  12. conflicts=("aptana")
  13.  
  14. if [ "$CARCH" = "i686" ]; then
  15.     source=("http://download.aptana.org/tools/studio/standalone/2.0.4.1268158907/linux/Aptana_Studio_Setup_Linux_x86_2.0.4.zip"
  16.             "aptana.sh"
  17.             "aptana.desktop"
  18.             "aptana-execfiles.txt")
  19.     md5sums=("2c47e5ad387113ae18fc327725037e78"
  20.              "52a5970330ab0d77238468269b481c0b"
  21.              "b59a7b242f51b66aa5b8f5d83bffc159"
  22.              "3fba080dbf04edd31ff4e16685054f4d")
  23.     noextract=("Aptana_Studio_Setup_Linux_x86_$pkgver.zip")
  24.     _zipname="Aptana_Studio_Setup_Linux_x86_$pkgver.zip"
  25. elif [ "$CARCH" = "x86_64" ]; then
  26.     source=("http://download.aptana.org/tools/studio/standalone/2.0.4.1268158907/linux/Aptana_Studio_Setup_Linux_x86_64_2.0.4.zip"
  27.             "aptana.sh"
  28.             "aptana.desktop"
  29.             "aptana-execfiles.txt")
  30.     md5sums=("5c154d2003ddfb09ba32ff65fa0536dd"
  31.              "52a5970330ab0d77238468269b481c0b"
  32.              "b59a7b242f51b66aa5b8f5d83bffc159"
  33.              "3fba080dbf04edd31ff4e16685054f4d")
  34.     noextract=("Aptana_Studio_Setup_Linux_x86_64_$pkgver.zip")
  35.     _zipname="Aptana_Studio_Setup_Linux_x86_64_$pkgver.zip"
  36. fi
  37.  
  38. build() {
  39.     jar xf $_zipname
  40.  
  41.     local _instpath="/usr/share"
  42.     local _file="none"
  43.  
  44.     cd "$srcdir" || return 1
  45.  
  46.     mv "$srcdir/Aptana Studio ${pkgver%*.*}" "$srcdir/$_pkgname" || return 1
  47.  
  48.     # Install Dirs
  49.     find "$_pkgname" -type d -exec install -d "{}" "$pkgdir/$_instpath/{}" \; || return 1
  50.  
  51.     # Install Files
  52.     install -m755 -d "$pkgdir/$_instpath" || return 1
  53.     find "$_pkgname" -type f \
  54.             $(cat "$startdir/$_pkgname-execfiles.txt" | sed -e "s/^/-not -path /" | sed -e "N;s:\n: :g") \
  55.             -exec install -Dm644 "{}" "$pkgdir/$_instpath/{}" \; || return 1
  56.  
  57.     # Install Executables
  58.     for _file in $(cat "$startdir/$_pkgname-execfiles.txt"); do
  59.             install -Dm755 "$_file" "$pkgdir/$_instpath/$_file" || return 1
  60.     done || return 1
  61.  
  62.     # install misc
  63.     install -d "$pkgdir/usr/bin" "$pkgdir/$_instpath"/{applications,pixmaps} || return 1
  64.     install -m755 "$startdir/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname" || return 1
  65.     install -m644 "$startdir/aptana.desktop" "$pkgdir/$_instpath/applications/" || return 1
  66.     ln -s "$_instpath/$_pkgname/icon.xpm" "$pkgdir/$_instpath/pixmaps/$_pkgname.xpm" || return 1
  67. }