diff options
author | dbrgn | 2015-07-25 16:11:40 +0200 |
---|---|---|
committer | dbrgn | 2015-07-25 16:11:40 +0200 |
commit | a32e8a1460e23e2514e291ff1480c4113e182c78 (patch) | |
tree | 510c3db7a3724c1844ca3eaebb2bae09f5523a67 /PKGBUILD | |
download | aur-a32e8a1460e23e2514e291ff1480c4113e182c78.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9ff0878f3dc9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +model="9330cdw" +pkgname="brother-mfc-$model" +pkgver="1.1.2" +pkgrel=1 +_revision=1 +pkgdesc="LPR and CUPS driver for the Brother MFC-9330CDW" +url="http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/index.html" +arch=('i686' 'x86_64') +license='unknown' +install="brother-mfc-${model}.install" +depends=('tcsh' 'deb2targz' 'perl' 'a2ps') +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") +sha256sums=('d6af18bd4e33a2e01f6647cc1eb6d7f1b519bd9f32c525c0343e6883d66a0e04' + '02d8c0fa2335e7903b51c94fcd049acc5a93cfe422e0e3f9762bb3e45148b68f') + +package() { + deb2targz *.deb >/dev/null || return 1 + rm -f *.deb || return 1 + cd $srcdir || 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 + cd mfc${model} || return 1 + cd opt/brother/Printers/mfc${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 + cp -rf $srcdir/mfc${model}/usr/ $pkgdir/ || return 1 + cp -rf $srcdir/mfc${model}/opt/ $pkgdir/ || return 1 +} |