Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 16th, 2011  |  syntax: Bash  |  size: 2.71 KB  |  views: 118  |  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.1: Simon Luijk <simon dot luijk gmail dot com>
  4. pkgname=aptana-studio
  5. _pkgname=aptana
  6. pkgver=3.0.2
  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" "java-environment" "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/$pkgver/linux/Aptana_Studio_3_Setup_Linux_x86_$pkgver.zip"
  19.             "aptana.sh"
  20.             "aptana.desktop"
  21.             "aptana-execfiles.txt")
  22.     md5sums=("aace925c5f67421333089ac266c390e3"
  23.         "6b7b28fd865cdaffb66ef5f2a3e175d3"
  24.         "e297d32ab375b84eaaabfca7bc012752"
  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/$pkgver/linux/Aptana_Studio_3_Setup_Linux_x86_64_$pkgver.zip"
  30.             "aptana.sh"
  31.             "aptana.desktop"
  32.             "aptana-execfiles.txt")
  33.     md5sums=("ed7a16850b199d1c811a97760d91cd20"
  34.         "6b7b28fd865cdaffb66ef5f2a3e175d3"
  35.         "e297d32ab375b84eaaabfca7bc012752"
  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.     unzip $_zipname
  43.  
  44.     local _instpath="/usr/share"
  45.     local _file="none"
  46.  
  47.     cd "$srcdir" || return 1
  48.     mv "$srcdir/Aptana Studio ${pkgver%*.*.*}" "$srcdir/$_pkgname" || return 1
  49.  
  50.     # Install Dirs
  51.     find "$_pkgname" -type d -exec install -d "{}" "$pkgdir/$_instpath/{}" \; || return 1
  52.  
  53.     # Install Files
  54.     install -m755 -d "$pkgdir/$_instpath" || return 1
  55.     find "$_pkgname" -type f \
  56.             $(cat "$startdir/$_pkgname-execfiles.txt" | sed -e "s/^/-not -path /" | sed -e "N;s:\n: :g") \
  57.             -exec install -Dm644 "{}" "$pkgdir/$_instpath/{}" \; || return 1
  58.  
  59.     # Install Executables
  60.     for _file in $(cat "$startdir/$_pkgname-execfiles.txt"); do
  61.             install -Dm755 "$_file" "$pkgdir/$_instpath/$_file" || return 1
  62.     done || return 1
  63.  
  64.     # install misc
  65.     install -d "$pkgdir/usr/bin" "$pkgdir/$_instpath"/{applications,pixmaps} || return 1
  66.     install -m755 "$startdir/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname" || return 1
  67.     install -m644 "$startdir/aptana.desktop" "$pkgdir/$_instpath/applications/" || return 1
  68.     ln -s "$_instpath/$_pkgname/icon.xpm" "$pkgdir/$_instpath/pixmaps/$_pkgname.xpm" || return 1
  69. }
clone this paste RAW Paste Data