summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorToru Matsuzaki2020-06-30 22:34:10 +0900
committerToru Matsuzaki2020-06-30 22:34:10 +0900
commit853e9a319a03c37900100b5558386e5854e464b6 (patch)
treecb8f604eea3e5a1c04fe518ef9b35019dbe0a6cb /PKGBUILD
downloadaur-brother-dcpj582n.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b71a3d3ad7b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: tr-mtzk <tr.mtzk@gmail.com>
+
+pkgname="brother-dcpj582n"
+pkgver="1.0.5"
+pkgrel="0"
+pkgdesc="Brother DCP-J582N CUPS driver"
+url="http://brother.co.jp/"
+license=('EULA')
+install="brother-dcpj582n.install"
+depends=('cups' 'a2ps' 'lib32-gcc-libs')
+arch=('i686' 'x86_64')
+
+md5sums=(
+ '341b0c2528985336ec0a0f539809a87b'
+ '0877c76c218a9f2e0709f58fcd70c3a5'
+)
+
+source=(
+ 'fix_lp.patch' \
+ "https://download.brother.com/welcome/dlf104685/dcpj582npdrv-$pkgver-$pkgrel.i386.rpm"
+)
+
+build() {
+ cd "$srcdir"
+ patch -Np0 < fix_lp.patch
+}
+
+package() {
+ install -d "$pkgdir"/usr/bin
+ install -Dm755 "$srcdir"/usr/bin/brprintconf_dcpj582n "$pkgdir"/usr/bin/
+ cp -R "$srcdir"/opt "$pkgdir"/opt
+}
+