Author: Anonymous Language: bash
Description: PKGBUILD for brscan4-0.4.1-5 Timestamp: 2013-07-30 04:33:59 -0400
View raw paste Reply
  1. # Maintainer: Harvey <harv@gmx.de>
  2. license=('GPL' 'custom:Brother')
  3. arch=('i686' 'x86_64')
  4. pkgname=brscan4
  5. pkgver=0.4.1_5
  6. pkgrel=1
  7. pkgdesc="SANE drivers from Brother for brscan4 compatible models"
  8. depends=('sane')
  9. url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html"
  10. install=brscan4.install
  11.  
  12. [ "$CARCH" = "x86_64" ] && pkg="${pkgname}-${pkgver/_/-}.x86_64.rpm" || pkg="${pkgname}-${pkgver/_/-}.i386.rpm"
  13. [ "$CARCH" = "x86_64" ] && pkg_md5sum="0e5e35cefb384a066bd9b6de4214f22e" || pkg_md5sum="17fb24ebce0d10dabdcb660774da8d50"
  14.  
  15. source=("http://pub.brother.com/pub/com/bsc/linux/dlf/$pkg" "http://www.brother.com/agreement/English_sane/agree.html" "brscan4.rules")
  16. md5sums=($pkg_md5sum 'ccffb9a6f6d436b21be25b0241068981' '002102827469f5b2f59f1b24cf4061d1')
  17.  
  18. package() {
  19.   cp -r $srcdir/etc $pkgdir
  20.   cp -r $srcdir/opt $pkgdir
  21.   cp -r $srcdir/usr $pkgdir
  22.   install -d -m755 $pkgdir/etc/udev/rules.d
  23.   install -D -m644 $srcdir/brscan4.rules $pkgdir/etc/udev/rules.d
  24.   install -D -m644 $srcdir/agree.html $pkgdir/usr/share/licenses/$pkgname/LICENSE.html
  25.   [ "$CARCH" = "x86_64" ] && mv $pkgdir/usr/lib64 $pkgdir/usr/lib
  26.   # move the links to the right direction
  27.   cd $pkgdir/usr/lib/sane
  28.   ln -sf libsane-brother4.so.1.0.7 $pkgdir/usr/lib/sane/libsane-brother4.so.1
  29.   ln -sf libsane-brother4.so.1 $pkgdir/usr/lib/sane/libsane-brother4.so
  30. }
  31.  
  32.  
View raw paste Reply