1 # Contributor: Mikolaj Pastuszko <deluminathor@gmail.com>
2 # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
3 license=('GPL' 'custom:Brother')
8 pkgdesc="SANE drivers from Brother for brscan3 compatibile models"
11 url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/download_scn.html"
12 install=brscan3.install
14 [ "$CARCH" = "x86_64" ] && pkg="${pkgname}-${pkgver/_/-}.x86_64.rpm" || pkg="${pkgname}-${pkgver/_/-}.i386.rpm"
15 [ "$CARCH" = "x86_64" ] && pkg_md5sum="05fdab58d2e652b259e367e600a02b7e" || pkg_md5sum="bf7b7d00c25597339ac5b87f1707cf75"
17 source=("http://pub.brother.com/pub/com/bsc/linux/dlf/$pkg" "http://www.brother.com/agreement/English_sane/agree.html" "brscan3.rules")
18 md5sums=($pkg_md5sum 'ccffb9a6f6d436b21be25b0241068981' '76537a0eb5b68c48b57b4409397a4fa5')
21 cp -r $srcdir/usr $pkgdir
22 install -d -m755 $pkgdir/etc/udev/rules.d
23 install -D -m644 $srcdir/brscan3.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
27 ln -sf libbrscandec3.so.1.0.0 libbrscandec3.so.1
28 ln -sf libbrscandec3.so.1 libbrscandec3.so
29 cd $pkgdir/usr/lib/sane
30 ln -sf libsane-brother3.so.1.0.7 libsane-brother3.so.1
31 ln -sf libsane-brother3.so.1 libsane-brother3.so