Advertisement
12qu

brscan-skey patch

Jun 5th, 2012
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.78 KB | None | 0 0
  1. --- ./brscan-skey.install   1970-01-01 19:14:21.000000000 +1000
  2. +++ ./brscan-skey.install   2012-06-08 13:53:24.000000000 +1000
  3. @@ -6,7 +6,8 @@
  4.  
  5.  # new package version
  6.  post_install() {
  7. -  /usr/local/Brother/sane/brscan-skey-0.2.1-3.sh 0 || /bin/false
  8. +  /opt/brother/scanner/brscan-skey/brscan-skey-0.2.3-0.sh 0 || /bin/false
  9. +  ln -s /opt/brother/scanner/brscan-skey/brscan-skey /usr/bin/brscan-skey || /bin/false
  10.  }
  11.  
  12.  # the new package version
  13. @@ -23,14 +24,15 @@
  14.  
  15.  # old package version
  16.  pre_remove() {
  17. -  /usr/local/Brother/sane/brscan-skey-0.2.1-3.sh r || /bin/false
  18. +  if [ -L /usr/bin/brscan-skey ]; then
  19. +     rm -f /usr/bin/brscan-skey
  20. +  else
  21. +     /bin/false
  22. +  fi
  23. +  /opt/brother/scanner/brscan-skey/brscan-skey-0.2.3-0.sh R || /bin/false
  24.  }
  25.  
  26.  # old package version
  27.  post_remove() {
  28.    /bin/true
  29.  }
  30. -
  31. -op=$1
  32. -shift
  33. -$op $*
  34. --- ./PKGBUILD  2011-04-22 02:46:22.000000000 +1000
  35. +++ ./PKGBUILD  2012-06-05 22:58:40.000000000 +1000
  36. @@ -1,8 +1,8 @@
  37.  # Contributor: Olaf Leidinger <leidola@newcon.de>
  38.  # Contributor: deluminathor <deluminathor at gmail dot com>
  39.  pkgname=brscan-skey
  40. -pkgver=0.2.1_3
  41. -pkgrel=3
  42. +pkgver=0.2.3_0
  43. +pkgrel=1
  44.  pkgdesc="Brother Scan-Key-Tool"
  45.  depends=('sane' 'sed')
  46.  arch=('i686' 'x86_64')
  47. @@ -12,15 +12,15 @@
  48.  
  49.  if [ $(uname -m) = "x86_64" ]; then
  50.    deb="${pkgname}-${pkgver/_/-}.x86_64.rpm"
  51. -  deb_md5sum="5c02581d66778ce89b86b5c17fb4cbf5"
  52. +  deb_md5sum="3f6190f4cb0e54d794829c04a103bd7c"
  53.  else
  54.    deb="${pkgname}-${pkgver/_/-}.i386.rpm"
  55. -  deb_md5sum="0deb2bfea752ddd8c2c213e51a51ef3b"
  56. +  deb_md5sum="b2ee4922c27e96add0f0ae8be676db2f"
  57.  fi
  58.  
  59.  source=("http://pub.brother.com/pub/com/bsc/linux/dlf/$deb")
  60.  md5sums=($deb_md5sum)
  61.  
  62.  build() {
  63. -    cp -r $srcdir/usr $pkgdir || return 1
  64. +    cp -r $srcdir/opt $pkgdir || return 1
  65.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement