diff options
author | Roland Singer | 2016-10-23 15:55:33 +0200 |
---|---|---|
committer | Roland Singer | 2016-10-23 15:55:33 +0200 |
commit | 4da103877e8c2e300b589424b104bcd8b7efc3ed (patch) | |
tree | 684c421b48cbdc4d6cae6458823713099e76604d | |
download | aur-brother-mfc6490cw-lpr.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 30 |
3 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..26a207e32694 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = brother-mfc6490cw-lpr + pkgdesc = LPR driver for Brother MFC-6490CW multifunction network printer + pkgver = 1.1.2_2 + pkgrel = 3 + url = http://solutions.brother.com/linux/en_us/download_prn.html#MFC-6490CW + arch = i686 + arch = x86_64 + license = GPL + depends = tcsh + source = http://download.brother.com/welcome/dlf006180/mfc6490cwlpr-1.1.2-2.i386.deb + md5sums = 781e72e8e451bbdb4db39a0967ec1dd6 + +pkgname = brother-mfc6490cw-lpr + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..72e8ffc0db8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..549600b893c3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Contributor: Mark Doe <mark.doe.priv@gmail.com> +# Contributor: Benjamin Bukowski <crankidiot(at)gmail.com> + +_printer=mfc6490cw +pkgname=brother-${_printer}-lpr +pkgver=1.1.2_2 +_version=${pkgver//_/-} +pkgrel=3 +pkgdesc="LPR driver for Brother MFC-6490CW multifunction network printer" +arch=('i686' 'x86_64') +url="http://solutions.brother.com/linux/en_us/download_prn.html#MFC-6490CW" +license=('GPL') +depends=('tcsh') +source=("http://download.brother.com/welcome/dlf006180/${_printer}lpr-${_version}.i386.deb") +md5sums=('781e72e8e451bbdb4db39a0967ec1dd6') + +package() { + cd $srcdir + + ar x ${_printer}lpr-${_version}.i386.deb || return 1 + [ ! -d "data" ] && mkdir data + tar -xzvf data.tar.gz -C data || return 1 + + [ ! -d "data/usr/share" ] && mkdir data/usr/share + mv data/usr/local/Brother data/usr/share/brother + rm -r data/usr/local + sed -i 's|/usr/local/Brother|/usr/share/brother|g' `grep -lr '/usr/local/Brother' data/` || return 1 + + cp -r data/usr $pkgdir || return 1 +} |