# Maintainer: Ernesto Castellotti # Maintainer: Rob Cornish # Contributer: Peter Jackson # Contributor: Mikolaj Pastuszko # Contributor: Andrej Gelenberg pkgname=brscan3 pkgver=0.2.13_1 pkgrel=9 pkgdesc="Brother SANE drivers for $pkgname-compatible models" arch=('i686' 'x86_64') url='http://support.brother.com/g/s/id/linux/en' license=('GPL' 'custom:Brother') depends=('sane' 'libusb-compat') install=brscan3.install source_i686=("http://download.brother.com/welcome/dlf006643/${pkgname}-${pkgver/_/-}.i386.rpm") sha256sums_i686=('5586fe264c7bd715e598b5d444f2851464ffe72857f2f48486466e7e2957f792') source_x86_64=("http://download.brother.com/welcome/dlf006644/${pkgname}-${pkgver/_/-}.x86_64.rpm") sha256sums_x86_64=('b462dbded2d0f7ae511057bd3cb6f8379042b75d996eef2675998a4559cc5556') source=('50-brscan3.rules' 'LICENSE.html') sha256sums=('3cb026dbffb59bde8f5317de21bd6bb84d88af2c0697ed3a520805fe65e0da85' '3434bca1936d6a5fd6afd810cde7e1876dd4d1496722b09af180278480f464f2') package() { cp -r "$srcdir"/usr "$pkgdir" install -d -m755 "$pkgdir"/etc/udev/rules.d install -D -m644 "$srcdir"/50-brscan3.rules "$pkgdir"/etc/udev/rules.d install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname install -D -m644 "$srcdir"/LICENSE.html "$pkgdir"/usr/share/licenses/$pkgname [ "$CARCH" = x86_64 ] && mv "$pkgdir"/usr/lib64 "$pkgdir"/usr/lib cd "$pkgdir"/usr/lib ln -sf libbrscandec3.so.1.0.0 libbrscandec3.so.1 ln -sf libbrscandec3.so.1 libbrscandec3.so cd "$pkgdir"/usr/lib/sane ln -sf libsane-brother3.so.1.0.7 libsane-brother3.so.1 ln -sf libsane-brother3.so.1 libsane-brother3.so }