Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: R00KIE on Oct 17th, 2012  |  syntax: Diff  |  size: 3.87 KB  |  hits: 34  |  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. diff -ur eagle_/eagle.desktop eagle/eagle.desktop
  2. --- eagle_/eagle.desktop        2010-08-12 16:45:36.000000000 +0100
  3. +++ eagle/eagle.desktop 2012-10-17 20:05:42.393015852 +0100
  4. @@ -4,5 +4,5 @@
  5.  Name=EAGLE Light Edition
  6.  TryExec=/usr/bin/eagle
  7.  Exec=eagle
  8. -Icon=/opt/eagle-@VERSION@/bin/eagleicon16.png
  9. +Icon=/opt/eagle/bin/eagleicon16.png
  10.  Categories=Development;
  11. diff -ur eagle_/eagle.sh eagle/eagle.sh
  12. --- eagle_/eagle.sh     2012-02-22 10:55:00.000000000 +0000
  13. +++ eagle/eagle.sh      2012-10-17 21:32:12.365219238 +0100
  14. @@ -1,30 +1,5 @@
  15.  #!/bin/bash
  16. -#
  17. -# A personal lbr dir can be set via $1 (defaults to $HOME/eagle/lbr if not set)
  18. -#
  19.  
  20. -readonly VER=@VERSION@
  21. -readonly REL=@RELEASE@
  22. +rsync -aq /opt/eagle/ "$HOME/.eagle"
  23.  
  24. -LOCAL_DIR="$HOME"/.eagle
  25. -PROJ_DIR="$HOME"/eagle
  26. -EAGLE_DIR=/opt/eagle-$VER
  27. -
  28. -LOCAL_LBR="${1:-$PROJ_DIR/lbr}"
  29. -if [[ -n $1 ]] || (! grep "^Directories\.Lbr[^=]*=" "$HOME"/.eaglerc &> /dev/null); then
  30. -  echo "Directories.Lbr = \"$LOCAL_LBR\"" >> "$HOME"/.eaglerc
  31. -fi
  32. -
  33. -create_local() {
  34. -  rm -rf "$LOCAL_DIR"
  35. -  install -dm755 "$LOCAL_DIR"
  36. -  cp -r "$EAGLE_DIR"/* "$LOCAL_DIR"
  37. -  touch "$LOCAL_DIR"/.eagle-$VER-$REL
  38. -}
  39. -
  40. -[[ ! -e "$LOCAL_DIR"/.eagle-$VER-$REL ]] && create_local
  41. -[[ ! -d "$LOCAL_LBR" ]] && install -dm755 "$LOCAL_LBR"
  42. -[[ ! -d "$PROJ_DIR" ]] && install -dm755 "$PROJ_DIR"
  43. -
  44. -cd "$LOCAL_DIR"/bin
  45. -exec ./eagle "$@"
  46. +exec "$HOME"/.eagle/bin/eagle "$@"
  47. diff -ur eagle_/PKGBUILD eagle/PKGBUILD
  48. --- eagle_/PKGBUILD     2012-10-17 14:10:22.000000000 +0100
  49. +++ eagle/PKGBUILD      2012-10-17 21:38:39.289466359 +0100
  50. @@ -1,39 +1,36 @@
  51.  pkgname=eagle
  52.  pkgver=6.3.0
  53. -pkgrel=2
  54. +pkgrel=3
  55.  pkgdesc="A powerful suite for schematic capture and printed circuit board design (aka eaglecad)"
  56.  arch=('i686' 'x86_64')
  57.  url="http://www.cadsoft.de/"
  58.  license=('custom')
  59.  [[ $CARCH = i686 ]] && depends=('gcc-libs' 'libxcursor' 'libjpeg-turbo' 'libxi'
  60. -    'libxrandr' 'openssl' 'libpng14')
  61. +    'libxrandr' 'openssl' 'libpng14' 'rsync')
  62.  [[ $CARCH = x86_64 ]] && depends=('lib32-fontconfig' 'lib32-freetype2'
  63.      'lib32-gcc-libs' 'lib32-libxcursor' 'lib32-libjpeg-turbo'
  64. -    'lib32-libxi' 'lib32-libxrandr' 'lib32-openssl' 'lib32-libpng14' 'lib32-libxrender')
  65. +    'lib32-libxi' 'lib32-libxrandr' 'lib32-openssl' 'lib32-libpng14'
  66. +    'lib32-libxrender' 'rsync')
  67.  options=('!strip')
  68.  source=(ftp://ftp.cadsoft.de/$pkgname/program/${pkgver%.*}/$pkgname-lin-$pkgver.run
  69.          $pkgname.desktop
  70.          $pkgname.sh)
  71.  md5sums=('661defb4ae9531e829a96c9aaaa16b0e'
  72. -         '8744e3b023e728660b97146b2e3c2dc7'
  73. -         '8ac37660a008823313711099409acfef')
  74. +         '519d39acd22aabd16bd6fdb54b52a202'
  75. +         'fcc538a36a7baea316cc48655aabcd1c')
  76.  
  77.  PKGEXT='.pkg.tar'
  78.  
  79.  build() {
  80.    cd "$srcdir"
  81.    install -Dm755 $pkgname.sh "$pkgdir/usr/bin/$pkgname"
  82. -  install -Dm644 $pkgname.desktop \
  83. -    "$pkgdir/usr/share/applications/$pkgname.desktop"
  84. +  install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
  85.  
  86.    msg2 "Running installation script (this may take a while)..."
  87.    sh $pkgname-lin-$pkgver.run "$pkgdir/opt" > /dev/null
  88. -  install -dm755 "$pkgdir"/usr/share/{man/man1,licenses/$pkgname,pixmaps}
  89. -  ln -sf /opt/$pkgname-$pkgver/doc/$pkgname.1 \
  90. -    "$pkgdir/usr/share/man/man1/$pkgname.1"
  91. -  ln -sf /opt/$pkgname-$pkgver/doc/license_en.txt \
  92. -    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  93. -  chown -R root:root "$pkgdir/opt/$pkgname-$pkgver"
  94. -  sed -i "s/@VERSION@/$pkgver/; s/@RELEASE@/$pkgrel/" \
  95. -    "$pkgdir"/usr/{bin/$pkgname,share/applications/$pkgname.desktop}
  96. +  mv "$pkgdir/opt/$pkgname-$pkgver" "$pkgdir/opt/$pkgname"
  97. +  install -dm755 "$pkgdir"/usr/share/{man/man1,licenses/$pkgname}
  98. +  ln -sf /opt/$pkgname/doc/$pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
  99. +  ln -sf /opt/$pkgname/doc/license_en.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  100. +  chown -R root:root "$pkgdir/opt/$pkgname"
  101.  }