summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorgenuineparts842024-09-08 21:12:50 +0200
committergenuineparts842024-09-08 21:12:50 +0200
commit6816d62674d23280dd8e432c43d2d0a83802c3cc (patch)
tree048887f6b92201e2f8a5a80fc8a1632dad51b71b /PKGBUILD
downloadaur-brother-mfc-l3760cdw.tar.gz
Initial Import of the repackaging
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..4213f50372cb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Bernhard Jaud <itsme+aur at genuineparts dot org>
+# This uses modified code from package brother-mfc-9335cdn by Leo Pham <regretfulumbrella at gmail dot com>
+
+pkgname=brother-mfc-l3760cdw
+pkgver=3.5.1
+pkgrel=0
+pkgdesc='LPR and CUPS drivers for the Brother MFC-L3760CDW'
+arch=('i686' 'x86_64')
+options=('!debug')
+url='http://support.brother.com/g/s/id/linux/en/index.html'
+license=('custom:brother' 'GPL')
+depends=('cups')
+if [[ $CARCH = x86_64 ]]; then
+ depends+=('lib32-expat' 'lib32-gcc-libs')
+fi
+makedepends=('perl' 'tar')
+install='brother-mfc-l3760cdw.install'
+source=('https://download.brother.com/welcome/dlf105762/mfcl3760cdwpdrv-3.5.1-1.i386.deb')
+md5sums=('a5fb3394dc1b7f0b9aec16ffdbaf5100')
+
+package() {
+ ar x mfcl3760cdwpdrv-3.5.1-1.i386.deb && tar xzvf data.tar.gz
+
+ # Patch filenames to work on Arch
+ cd opt/brother/Printers/mfcl3760cdw
+ #perl -i -pe 's#/etc/init.d#/etc/rc.d#g' ./cupswrapper/cupswrappermfcl3760cdw
+ perl -i -pe 's#printcap\.local#printcap#g' ./inf/setupPrintcapij
+
+ cp -rf $srcdir/opt/ $pkgdir/
+}