Advertisement
siasia

dart-sdk-pkgbuild

Sep 17th, 2012
521
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.78 KB | None | 0 0
  1. diff -Nru dart-sdk.orig/PKGBUILD dart-sdk/PKGBUILD
  2. --- dart-sdk.orig/PKGBUILD  2012-03-17 12:55:08.000000000 +0300
  3. +++ dart-sdk/PKGBUILD   2012-09-18 01:31:33.244638522 +0300
  4. @@ -1,6 +1,6 @@
  5.  # Maintainer: Usagi Ito <usagi@WonderRabbitProject.net>
  6.  pkgname=dart-sdk
  7. -pkgver=20120317
  8. +pkgver=12439
  9.  pkgrel=1
  10.  pkgdesc="the Dart language SDK. (integration version as tested)"
  11.  arch=('i686' 'x86_64')
  12. @@ -12,40 +12,22 @@
  13.  provides=()
  14.  conflicts=(dart-sdk-latest)
  15.  replaces=()
  16. -source=()
  17.  install=
  18.  changelog=
  19.  noextract=()
  20. -md5sums=()
  21.  
  22. -zip_url='http://gsdview.appspot.com/dart-editor-archive-integration/latest/dart-linux.zip'
  23. -zip_filename=`basename ${zip_url}`
  24. -ziped_directory='dart-sdk'
  25. -
  26. -build(){
  27. -  pushd $srcdir
  28. -  
  29. -  msg 'get the binary'
  30. -  if [ -f $zip_filename ]
  31. -  then
  32. -    rm -rf $zip_filename
  33. -  fi
  34. -  wget -N $zip_url
  35. -  if [ -d $ziped_directory ]
  36. -  then
  37. -    rm -rf $ziped_directory
  38. -  fi
  39. -  unzip $zip_filename
  40. -  chmod -R +r $ziped_directory/
  41. -  chmod -R +x $ziped_directory/bin/*
  42. -
  43. -  popd
  44. -}
  45. +if test "$CARCH" == x86_64; then
  46. +   source=('http://gsdview.appspot.com/dart-editor-archive-integration/latest/dartsdk-linux-64.tar.gz')
  47. +   md5sums=('fc924df599644d60be4eea51900d0fc5')
  48. +else
  49. +   source=('http://gsdview.appspot.com/dart-editor-archive-integration/latest/dartsdk-linux-32.tar.gz')
  50. +   md5sums=('d18059f840b63a83147f14a8d6e46e81')
  51. +fi
  52.  
  53.  package(){
  54. -  destination_directory=${pkgdir}/usr/local
  55. -  mkdir -p $destination_directory
  56. -  cp -a ${srcdir}/$ziped_directory/* $destination_directory
  57. -  find $destination_directory -type d -print | xargs chmod +x
  58. +   mkdir -p ${pkgdir}/opt
  59. +   find ${srcdir}/dart-sdk -perm -u+x -exec chmod +x '{}' +
  60. +   find ${srcdir}/dart-sdk -perm -u+r -exec chmod +r '{}' +
  61. +   cp -r $srcdir/dart-sdk ${pkgdir}/opt/
  62.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement