Don't like ads? PRO users don't see any ads ;-)
Guest

bkuri

By: a guest on Jul 4th, 2010  |  syntax: None  |  size: 1.36 KB  |  hits: 130  |  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: bkuri <aur@bkuri.com> (adapted from adobe-air-sdk-beta by: irgaly <irgaly@fird.net>)
  2.  
  3. pkgname=adobe-air-sdk
  4. pkgver=2.02
  5. pkgrel=1
  6. pkgdesc="Adobe Air Software Development Kit and Runtime Environment"
  7. conflicts="adobe-air-sdk"
  8. arch=('i686' 'x86_64')
  9. url="http://labs.adobe.com/downloads/air2.html"
  10. license=('custom')
  11. source=('http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRSDK.tbz2')
  12. md5sums=('0954505df64e9f92779aa39c1835c279')
  13. install=${pkgname}.install
  14.  
  15. build (){
  16.   install -d ${pkgdir}/opt/adobe-air-sdk || return 1
  17.   pushd ${srcdir} || return 1
  18.     find . ! -name AdobeAIRSDK.tbz2 ! -name SDK\ license.pdf | sed -e 's/\.\///g' | while read file; do
  19.       if [ -d "$file" ]; then
  20.         install -d ${pkgdir}/opt/adobe-air-sdk/"$file" || return 1
  21.       elif [ -h "$file" ]; then
  22.         if [ $(file "$file" | grep 'broken' -c) = "0" ]; then
  23.           ln -s $(echo $(file "$file" | grep -o -e \`[^\']*) | sed -e "s/\`//g") ${pkgdir}/opt/adobe-air-sdk/"$file" || return 1
  24.         fi || return 1
  25.       else
  26.         install -D "$file" ${pkgdir}/opt/adobe-air-sdk/"$file" || return 1
  27.       fi || return 1
  28.     done || return 1
  29.     install -d ${pkgdir}/usr/share/licences/adobe-air-sdk || return 1
  30.     install -D -m644 ${srcdir}/SDK\ license.pdf ${pkgdir}/usr/share/licences/adobe-air-sdk/sdk-license.pdf || return 1
  31.   popd || return 1
  32. }