diff options
author | XenGi | 2018-02-19 06:28:22 +0100 |
---|---|---|
committer | XenGi | 2018-02-19 06:28:22 +0100 |
commit | fa0903ff659e28686f8578a58ddc818198407ed6 (patch) | |
tree | bb5545eb3509ee70b9f190300f247f9623ee041b /PKGBUILD | |
parent | 7efd3159ff2275aadc03e998eaf1d7897e69f93c (diff) | |
download | aur-fa0903ff659e28686f8578a58ddc818198407ed6.tar.gz |
fixed it
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -3,7 +3,7 @@ _model="9022cdw" pkgname="brother-dcp-$_model" pkgver="1.1.3" -pkgrel=3 +pkgrel=4 _lprver="1.1.3-0" _wrpver="1.1.4-0" pkgdesc="LPR and CUPS driver for the Brother DCP-9022CDW" @@ -12,25 +12,26 @@ arch=('i686' 'x86_64') license=('unknown') install="brother-dcp-${_model}.install" if [[ "$CARCH" == "x86_64" ]] ; then - depends=('tcsh' 'deb2targz' 'perl' 'a2ps' 'lib32-glibc') + depends=('tcsh' 'perl' 'a2ps' 'lib32-glibc') elif [[ "$CARCH" == "i686" ]] ; then - depends=('tcsh' 'deb2targz' 'perl' 'a2ps') + depends=('tcsh' 'perl' 'a2ps') fi source=("http://download.brother.com/welcome/dlf101612/dcp${_model}lpr-${_lprver}.i386.deb" "http://download.brother.com/welcome/dlf101613/dcp${_model}cupswrapper-${_wrpver}.i386.deb") sha256sums=('8db48cda7e8f38f6a9fe0279f67e6d286a300f41e7982d1be275113542ec5027' '5b44c91152236079ebfd15f5b0e1e8f515d114a395cf77459387ba9358c8a7fa') package() { - deb2targz *.deb >/dev/null - rm -f *.deb cd $srcdir - mkdir dcp${_model} - for i in *.tar.gz ; do - tar xfz $i -C dcp${_model} - done - cd dcp${_model}/opt/brother/Printers/dcp${_model} + # extract both packages + ar x dcp${_model}lpr-${_lprver}.i386.deb + tar xf data.tar.gz + ar x dcp${_model}cupswrapper-${_wrpver}.i386.deb + tar xf data.tar.gz + + # do some packing + cd opt/brother/Printers/dcp${_model} perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrapperdcp${_model} - perl -i -pe 's#printcap\.local#printcap#g' $srcdir/dcp${_model}/opt/brother/Printers/dcp${_model}/inf/setupPrintcapij - cp -rf $srcdir/dcp${_model}/usr/ $pkgdir/ - cp -rf $srcdir/dcp${_model}/opt/ $pkgdir/ + perl -i -pe 's#printcap\.local#printcap#g' $srcdir/opt/brother/Printers/dcp${_model}/inf/setupPrintcapij + cp -rf $srcdir/usr/ $pkgdir/ + cp -rf $srcdir/opt/ $pkgdir/ } |