brother-brscan4: update to 0.4.9
This commit is contained in:
parent
fe50414cb6
commit
b7f68ecd09
|
@ -1,8 +1,9 @@
|
|||
# Template file for 'brother-brscan4'
|
||||
pkgname=brother-brscan4
|
||||
version=0.4.5
|
||||
version=0.4.9
|
||||
revision=1
|
||||
archs="i686 x86_64"
|
||||
hostmakedepends="rpmextract"
|
||||
depends="sane"
|
||||
short_desc="SANE scanner driver for brscan4-compatible printers"
|
||||
maintainer="Martijn van Buul <martijn.van.buul@gmail.com>"
|
||||
|
@ -11,27 +12,28 @@ homepage="http://support.brother.com/"
|
|||
repository="nonfree"
|
||||
nopie=yes
|
||||
_mylibrary="libsane-brother4.so.1.0.7"
|
||||
conf_files="/etc/opt/brother/scanner/brscan4/Brsane4.ini /etc/opt/brother/scanner/brscan4/brsanenetdevice4.cfg /etc/opt/brother/scanner/brscan4/models4/*.ini"
|
||||
conf_files="/etc/opt/brother/scanner/brscan4/Brsane4.ini
|
||||
/etc/opt/brother/scanner/brscan4/brsanenetdevice4.cfg
|
||||
/etc/opt/brother/scanner/brscan4/models4/*.ini"
|
||||
|
||||
# license
|
||||
distfiles="http://www.brother.com/agreement/English_sane/agree.html>LICENSE.html"
|
||||
checksum="3434bca1936d6a5fd6afd810cde7e1876dd4d1496722b09af180278480f464f2"
|
||||
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
_debpkgid="1.amd64"
|
||||
distfiles+=" http://download.brother.com/welcome/dlf006645/brscan4-${version}-${_debpkgid}.deb"
|
||||
checksum+=" 9ad23cb4a9e82ef8ea19fbadf40058232aada3150f816ddda61048d650d1eee7"
|
||||
_deblibdir="usr/lib64"
|
||||
_rpmpkgid="1.x86_64"
|
||||
distfiles+=" http://download.brother.com/welcome/dlf006648/brscan4-${version}-${_rpmpkgid}.rpm"
|
||||
checksum+=" 0d0af0f3f299a94d32b275f4714c72407ee679dd9e27eac050d6728cd728ac89"
|
||||
_rpmlibdir="usr/lib64"
|
||||
else
|
||||
_debpkgid="1.i386"
|
||||
distfiles+=" http://download.brother.com/welcome/dlf006646/brscan4-${version}-${_debpkgid}.deb"
|
||||
checksum+=" 44f9b2e8068b4b8817e62c00a1c62e710e9c0931984a18c28799e3ec1eaff32d"
|
||||
_deblibdir="usr/lib"
|
||||
_rpmpkgid="1.i386"
|
||||
distfiles+=" http://download.brother.com/welcome/dlf006647/brscan4-${version}-${_rpmpkgid}.rpm"
|
||||
checksum+=" 73bcbcc661a05000375266369fc6e22a980cc956ac7f92926ff42516f92845f8"
|
||||
_rpmlibdir="usr/lib"
|
||||
fi
|
||||
|
||||
do_extract() {
|
||||
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/brscan4-${version}-${_debpkgid}.deb
|
||||
tar xzpf data.tar.gz
|
||||
rpmextract ${XBPS_SRCDISTDIR}/${pkgname}-${version}/brscan4-${version}-${_rpmpkgid}.rpm
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
@ -39,7 +41,7 @@ do_install() {
|
|||
# unwieldly locations. Some of this cannot be avoided.
|
||||
|
||||
# deb package installs 64-bit libraries in /usr/lib64; fix this
|
||||
vinstall ./${_deblibdir}/sane/${_mylibrary} 755 usr/lib/sane
|
||||
vinstall ./${_rpmlibdir}/sane/${_mylibrary} 755 usr/lib/sane
|
||||
ln -sf /usr/lib/sane/${_mylibrary} ${DESTDIR}/usr/lib/sane/$(echo ${_mylibrary} | sed -e 's/\.[0-9]\.[0-9]$//')
|
||||
ln -sf /usr/lib/sane/${_mylibrary} ${DESTDIR}/usr/lib/sane/$(echo ${_mylibrary} | sed -e 's/\.[0-9]\.[0-9]\.[0-9]$//')
|
||||
|
||||
|
|
Loading…
Reference in New Issue