diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3946422a47ac --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = brother-fax2840 + pkgdesc = Brother FAX2840 driver + pkgver = 1.1.0_1 + pkgrel = 1 + url = http://www.brother.com + arch = x86_64 + arch = i686 + license = custom:Brother + depends = perl + depends = bash + depends = lib32-glibc + source = http://download.brother.com/welcome/dlf005728/fax2840cupswrapper-3.0.1-1.i386.rpm + source = http://download.brother.com/welcome/dlf005726/fax2840lpr-3.0.1-1.i386.rpm + md5sums = a2efd7b93210b0020eb59a0e630ee2f8 + md5sums = f46b6f7f71ec0e38fe56eb65dca2e65c + +pkgname = brother-fax2840 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aade9f2cae50 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ + +# Maintainer:Carlos Enriquez Figueras <linguafalsa at gmail dot com> +pkgname=brother-fax2840 +pkgver=1.1.0_1 +pkgrel=1 +pkgdesc="Brother FAX2840 driver" +url="http://www.brother.com" +arch=('x86_64' 'i686') +depends=('perl' 'bash') +license=('custom:Brother') +source=( +http://download.brother.com/welcome/dlf005728/fax2840cupswrapper-3.0.1-1.i386.rpm +http://download.brother.com/welcome/dlf005726/fax2840lpr-3.0.1-1.i386.rpm +) +md5sums=( + 'a2efd7b93210b0020eb59a0e630ee2f8' + 'f46b6f7f71ec0e38fe56eb65dca2e65c' +) + +if [[ "$CARCH" == "x86_64" ]]; then + depends+=('lib32-glibc') +fi + +package() { + mkdir -p "${pkgdir}/opt" + cp -R "${srcdir}/opt/brother" "${pkgdir}/opt/brother" + + mkdir -p "${pkgdir}/usr/lib/cups/filter" + echo "#! /opt/brother/Printers/FAX2840/cupswrapper/brother_lpdwrapper_FAX2840" > "${srcdir}/filter-shim" + install -m 0755 -o root -g root "${srcdir}/filter-shim" "${pkgdir}/usr/lib/cups/filter/brother_lpdwrapper_FAX2840" + + mkdir -p "${pkgdir}/usr/share/ppd/cupsfilters" + install -m 0644 -o root -g root "${srcdir}/opt/brother/Printers/FAX2840/cupswrapper/brother-FAX-2840-cups-en.ppd" "${pkgdir}/usr/share/ppd/cupsfilters" +} |