brother-brscan3: fix x86 installation; indentation.
This commit is contained in:
parent
b64fd3fefe
commit
fd7250b04f
|
@ -13,15 +13,16 @@ create_wksrc=yes
|
||||||
|
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
distfiles="http://download.brother.com/welcome/dlf006642/brscan3-${version}-5.amd64.deb"
|
distfiles="http://download.brother.com/welcome/dlf006642/brscan3-${version}-5.amd64.deb"
|
||||||
checksum="cce23bd9481f0fb3856e6c1fecdb65d7b21d1efb74e1741ef6185fa952319beb"
|
checksum="cce23bd9481f0fb3856e6c1fecdb65d7b21d1efb74e1741ef6185fa952319beb"
|
||||||
debpkgid="5.amd64"
|
debpkgid="5.amd64"
|
||||||
|
mylibdir="lib64"
|
||||||
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||||
distfiles="http://download.brother.com/welcome/dlf006641/brscan3-${version}-4.i386.deb"
|
distfiles="http://download.brother.com/welcome/dlf006641/brscan3-${version}-4.i386.deb"
|
||||||
checksum="3d2c8aace27a694c0984c6a1913fb2ebbd6cfd7a46bcdce3d54ae3693009d835"
|
checksum="3d2c8aace27a694c0984c6a1913fb2ebbd6cfd7a46bcdce3d54ae3693009d835"
|
||||||
debpkgid="4.i386"
|
debpkgid="4.i386"
|
||||||
|
mylibdir="lib"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
do_extract() {
|
do_extract() {
|
||||||
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/brscan3-${version}-${debpkgid}.deb
|
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/brscan3-${version}-${debpkgid}.deb
|
||||||
cd ${wrksrc}
|
cd ${wrksrc}
|
||||||
|
@ -29,16 +30,15 @@ do_extract() {
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install(){
|
do_install(){
|
||||||
mkdir -p ${DESTDIR}
|
# dlls and symlink (correctly put in /usr/lib)
|
||||||
# dlls and symlink (correctly put in /usr/lib)
|
cd ${wrksrc}
|
||||||
cd ${wrksrc}
|
vinstall ./usr/${mylibdir}/sane/libsane-brother3.so.1.0.7 755 usr/lib/sane
|
||||||
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.1
|
ln -sf /usr/lib/sane/libsane-brother3.so.1.0.7 ${DESTDIR}/usr/lib/sane/libsane-brother3.so
|
||||||
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
|
||||||
vinstall ./usr/lib64/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/lib64/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
|
||||||
ln -sf /usr/lib64/libbrscandec3.so.1.0.0 ${DESTDIR}/usr/lib/libbrscandec3.so
|
vmkdir /opt/Brother
|
||||||
vmkdir /opt/Brother
|
vcopy "./usr/local/Brother/*" /opt/Brother/
|
||||||
vcopy "./usr/local/Brother/*" /opt/Brother/
|
vinstall ${FILESDIR}/60-brother-brscan3.rules 644 usr/lib/udev/rules.d
|
||||||
vinstall ${FILESDIR}/60-brother-brscan3.rules 644 usr/lib/udev/rules.d
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue