Fixed different paths

This commit is contained in:
Seylerius 2016-11-22 13:46:53 -08:00
parent 67a531d7ef
commit 3d8398da70
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,7 @@
pkgbase = brother-mfc-9460cdn pkgbase = brother-mfc-9460cdn
pkgdesc = LPR and CUPS driver for the Brother MFC-9460CDN pkgdesc = LPR and CUPS driver for the Brother MFC-9460CDN
pkgver = 1.1.1 pkgver = 1.1.1
pkgrel = 1 pkgrel = 2
url = http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html url = http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html
install = brother-mfc-9460cdn.install install = brother-mfc-9460cdn.install
arch = i686 arch = i686

View File

@ -4,7 +4,7 @@
_model="9460cdn" _model="9460cdn"
pkgname="brother-mfc-$_model" pkgname="brother-mfc-$_model"
pkgver="1.1.1" pkgver="1.1.1"
pkgrel=1 pkgrel=2
pkgdesc="LPR and CUPS driver for the Brother MFC-9460CDN" pkgdesc="LPR and CUPS driver for the Brother MFC-9460CDN"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html" url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html"
@ -18,10 +18,10 @@ _revision=5
source=("http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}lpr-${pkgver}-${_revision}.i386.deb" source=("http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}lpr-${pkgver}-${_revision}.i386.deb"
"http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}cupswrapper-${pkgver}-${_revision}.i386.deb") "http://www.brother.com/pub/bsc/linux/dlf/mfc${_model}cupswrapper-${pkgver}-${_revision}.i386.deb")
md5sums=('5c6e7ca447ee3c9d135d9fa9f2a2a469' md5sums=('5c6e7ca447ee3c9d135d9fa9f2a2a469'
'7d6449e7cc163e5ccc6b83d34af46743') '7d6449e7cc163e5ccc6b83d34af46743')
build() { build() {
deb2targz *.deb >/dev/null || return 1 deb2targz *.deb >/dev/null || return 1
rm -f *.deb || return 1 rm -f *.deb || return 1
@ -29,12 +29,11 @@ build() {
[ -d "mfc${_model}" ] || (mkdir mfc${_model} || return 1) [ -d "mfc${_model}" ] || (mkdir mfc${_model} || return 1)
for i in *.tar.gz;do tar xfz $i -C mfc${_model};done || return 1 for i in *.tar.gz;do tar xfz $i -C mfc${_model};done || return 1
cd mfc${_model} || return 1 cd mfc${_model} || return 1
cd opt/brother/Printers/mfc${_model} || return 1 cd usr/local/Brother/Printer/mfc${_model} || return 1
perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${_model} || return 1 perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfc${_model} || return 1
perl -i -pe 's#printcap\.local#printcap#g' $srcdir/mfc${_model}/opt/brother/Printers/mfc${_model}/inf/setupPrintcapij || return 1 perl -i -pe 's#printcap\.local#printcap#g' $srcdir/mfc${_model}/usr/local/Brother/Printer/mfc${_model}/inf/setupPrintcapij || return 1
} }
package() { package() {
cp -rf $srcdir/mfc${_model}/usr/ $pkgdir/ || return 1 cp -rf $srcdir/mfc${_model}/usr/ $pkgdir/ || return 1
cp -rf $srcdir/mfc${_model}/opt/ $pkgdir/ || return 1
} }