2014-04-23 20:26:17 +02:00
|
|
|
# Template file for 'brother-brscan3'
|
|
|
|
pkgname=brother-brscan3
|
|
|
|
version=0.2.11
|
2015-04-08 16:08:29 +02:00
|
|
|
revision=5
|
2014-10-27 18:05:31 +01:00
|
|
|
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
|
2014-04-23 20:26:17 +02:00
|
|
|
homepage="http://support.brother.com/g/b/index.aspx"
|
|
|
|
license="GPL-2"
|
2015-04-08 16:08:29 +02:00
|
|
|
short_desc="Scanner driver for the brother DCP-197C printer/scanner"
|
2014-04-23 20:26:17 +02:00
|
|
|
only_for_archs="i686 x86_64"
|
2014-04-27 13:51:10 +02:00
|
|
|
makedepends="sane-devel"
|
2014-12-19 11:21:58 +01:00
|
|
|
depends="sane"
|
2014-06-18 10:41:28 +02:00
|
|
|
create_wrksrc=yes
|
2014-04-23 20:26:17 +02:00
|
|
|
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
distfiles="http://download.brother.com/welcome/dlf006642/brscan3-${version}-5.amd64.deb"
|
2014-04-24 14:54:20 +02:00
|
|
|
checksum="cce23bd9481f0fb3856e6c1fecdb65d7b21d1efb74e1741ef6185fa952319beb"
|
2014-04-23 20:26:17 +02:00
|
|
|
debpkgid="5.amd64"
|
2014-04-24 14:54:20 +02:00
|
|
|
mylibdir="lib64"
|
2014-04-23 20:26:17 +02:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
|
|
distfiles="http://download.brother.com/welcome/dlf006641/brscan3-${version}-4.i386.deb"
|
2014-04-24 12:21:51 +02:00
|
|
|
checksum="3d2c8aace27a694c0984c6a1913fb2ebbd6cfd7a46bcdce3d54ae3693009d835"
|
2014-04-24 14:54:20 +02:00
|
|
|
debpkgid="4.i386"
|
|
|
|
mylibdir="lib"
|
2014-04-23 20:26:17 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
do_extract() {
|
|
|
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/brscan3-${version}-${debpkgid}.deb
|
|
|
|
cd ${wrksrc}
|
|
|
|
tar xzpvf data.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install(){
|
2014-04-24 14:54:20 +02:00
|
|
|
# dlls and symlink (correctly put in /usr/lib)
|
|
|
|
cd ${wrksrc}
|
|
|
|
vinstall ./usr/${mylibdir}/sane/libsane-brother3.so.1.0.7 755 usr/lib/sane
|
|
|
|
ln -sf /usr/lib/sane/libsane-brother3.so.1.0.7 ${DESTDIR}/usr/lib/sane/libsane-brother3.so.1
|
|
|
|
ln -sf /usr/lib/sane/libsane-brother3.so.1.0.7 ${DESTDIR}/usr/lib/sane/libsane-brother3.so
|
|
|
|
vinstall ./usr/${mylibdir}/libbrscandec3.so.1.0.0 755 usr/lib
|
|
|
|
ln -sf /usr/lib/libbrscandec3.so.1.0.0 ${DESTDIR}/usr/lib/libbrscandec3.so.1
|
|
|
|
ln -sf /usr/lib/libbrscandec3.so.1.0.0 ${DESTDIR}/usr/lib/libbrscandec3.so
|
|
|
|
vmkdir /opt/Brother
|
|
|
|
vcopy "./usr/local/Brother/*" /opt/Brother/
|
2014-04-23 20:26:17 +02:00
|
|
|
}
|