void-packages/srcpkgs/brother-brscan3/template

44 lines
1.7 KiB
Plaintext
Raw Normal View History

# Template file for 'brother-brscan3'
pkgname=brother-brscan3
version=0.2.11
revision=1
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
homepage="http://support.brother.com/g/b/index.aspx"
license="GPL-2"
short_desc=" Scanner driver for the brother DCP-197C printer/scanner"
only_for_archs="i686 x86_64"
depends="brother-dcp197c-lpr brother-dcp197c-cupswrapper cups sane"
create_wksrc=yes
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
distfiles="http://download.brother.com/welcome/dlf006642/brscan3-${version}-5.amd64.deb"
checksum="cce23bd9481f0fb3856e6c1fecdb65d7b21d1efb74e1741ef6185fa952319beb"
debpkgid="5.amd64"
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
distfiles="http://download.brother.com/welcome/dlf006641/brscan3-${version}-4.i386.deb"
checksum="b8"
debpkgid="4.i386"
fi
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/brscan3-${version}-${debpkgid}.deb
cd ${wrksrc}
tar xzpvf data.tar.gz
}
do_install(){
mkdir -p ${DESTDIR}
# dlls and symlink (correctly put in /usr/lib)
cd ${wrksrc}
vinstall ./usr/lib64/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/lib64/libbrscandec3.so.1.0.0 755 usr/lib
ln -sf /usr/lib64/libbrscandec3.so.1.0.0 ${DESTDIR}/usr/lib/libbrscandec3.so.1
ln -sf /usr/lib64/libbrscandec3.so.1.0.0 ${DESTDIR}/usr/lib/libbrscandec3.so
vmkdir /opt/Brother
vcopy "./usr/local/Brother/*" /opt/Brother/
vinstall ${FILESDIR}/60-brother-brscan3.rules 644 usr/lib/udev/rules.d
}