From b7f68ecd0941f8eb61985f3a5d019dbc5f4545f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 9 Nov 2020 21:30:35 +0100 Subject: [PATCH] brother-brscan4: update to 0.4.9 --- srcpkgs/brother-brscan4/template | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/srcpkgs/brother-brscan4/template b/srcpkgs/brother-brscan4/template index 36f952afc9..5b377231b9 100644 --- a/srcpkgs/brother-brscan4/template +++ b/srcpkgs/brother-brscan4/template @@ -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 " @@ -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]$//')