summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Muzyka2016-01-24 16:15:17 +0600
committerIgor Muzyka2016-01-24 16:15:17 +0600
commit3dfebbca8ffda6e5fc97af80c6dc59bdc9be6b11 (patch)
tree321f7341d1357a3f88c91ad01be4bb51b1aa162f
parentc06d4ece9ac3db0640cee71195459dbb6d939fa7 (diff)
downloadaur-3dfebbca8ffda6e5fc97af80c6dc59bdc9be6b11.tar.gz
Update pkgrel to 3
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD31
-rw-r--r--install151
3 files changed, 25 insertions, 170 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 33815d289991..62c4e8b98d74 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,21 +1,20 @@
# Generated by mksrcinfo v8
-# Sun Jan 24 08:44:45 UTC 2016
+# Sun Jan 24 10:14:45 UTC 2016
pkgbase = brother-dcp1510
pkgdesc = Brother cups and lpr driver for DCP-1510, DCP-1510r, DCP-1511, DCP-1512, DCP-1512r, DCP-1518
pkgver = 3.0.1_1
- pkgrel = 2
+ pkgrel = 3
url = http://support.brother.com/g/s/id/linux/en/download_prn.html
install = install
arch = i686
arch = x86_64
license = GPL
- depends = psutils
depends = cups
optdepends = brscan4: scanner support
- source = http://www.brother.com/pub/bsc/linux/dlf/dcp1510lpr-3.0.1-1.i386.deb
- source = http://www.brother.com/pub/bsc/linux/dlf/dcp1510cupswrapper-3.0.1-1.i386.deb
- md5sums = 20aad8606e54516346348702ff137701
- md5sums = 15a01c13ef18510b5b40576505cd016e
+ source = http://www.brother.com/pub/bsc/linux/dlf/dcp1510lpr-3.0.1-1.i386.rpm
+ source = http://www.brother.com/pub/bsc/linux/dlf/dcp1510cupswrapper-3.0.1-1.i386.rpm
+ md5sums = 0402bc86764692b02ef412ba6df3b9de
+ md5sums = 49689b80de1b5d08244eb9a9be1399fd
depends_x86_64 = lib32-glibc
pkgname = brother-dcp1510
diff --git a/PKGBUILD b/PKGBUILD
index 017086b7679b..22bf27ef13bc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,33 +2,30 @@
pkgname=brother-dcp1510
pkgver=3.0.1_1
-pkgrel=2
+pkgrel=3
pkgdesc="Brother cups and lpr driver for DCP-1510, DCP-1510r, DCP-1511, DCP-1512, DCP-1512r, DCP-1518"
arch=('i686' 'x86_64')
url="http://support.brother.com/g/s/id/linux/en/download_prn.html"
license=('GPL')
-depends=('psutils' 'cups')
+depends=('cups')
depends_x86_64=('lib32-glibc')
optdepends=('brscan4: scanner support')
-source=(http://www.brother.com/pub/bsc/linux/dlf/dcp1510lpr-3.0.1-1.i386.deb
- http://www.brother.com/pub/bsc/linux/dlf/dcp1510cupswrapper-3.0.1-1.i386.deb)
+source=(http://www.brother.com/pub/bsc/linux/dlf/dcp1510lpr-3.0.1-1.i386.rpm
+ http://www.brother.com/pub/bsc/linux/dlf/dcp1510cupswrapper-3.0.1-1.i386.rpm)
-md5sums=('20aad8606e54516346348702ff137701'
- '15a01c13ef18510b5b40576505cd016e')
+md5sums=('0402bc86764692b02ef412ba6df3b9de'
+ '49689b80de1b5d08244eb9a9be1399fd')
install=install
package() {
-cd $srcdir
-mkdir dcp1510lpr
-mkdir dcp1510cupswrapper
-cd dcp1510lpr
-ar x ../dcp1510lpr-3.0.1-1.i386.deb
-cd ../dcp1510cupswrapper
-ar x ../dcp1510cupswrapper-3.0.1-1.i386.deb
-cd $pkgdir
-tar xvfp $srcdir/dcp1510lpr/data.tar.gz
-tar xvfp $srcdir/dcp1510cupswrapper/data.tar.gz
-sed -i '/chown/d' ./opt/brother/Printers/DCP1510/inf/setupPrintcap
+cp -rv ${srcdir}/opt ${pkgdir}/
+cp -rv ${srcdir}/var ${pkgdir}/
+
+mkdir -p ${pkgdir}/usr/share/cups/model
+mkdir -p ${pkgdir}/usr/lib/cups/filter
+
+ln -sv /opt/brother/Printers/DCP1510/cupswrapper/brother-DCP1510-cups-en.ppd ${pkgdir}/usr/share/cups/model
+ln -sv /opt/brother/Printers/DCP1510/cupswrapper/brother_lpdwrapper_DCP1510 ${pkgdir}/usr/lib/cups/filter
}
diff --git a/install b/install
index a1ec8c06fe59..fc49922baaa9 100644
--- a/install
+++ b/install
@@ -1,148 +1,7 @@
post_install() {
-/opt/brother/Printers/DCP1510/inf/setupPrintcap DCP1510 -i USB
-/opt/brother/Printers/DCP1510/inf/braddprinter -i DCP1510
-if [ ! -e /usr/sbin/pstops ];then
- PSTOPS=/usr/bin/pstops
- if [ "`echo $PSTOPS | grep -i cups`" != "" ];then
- PSTOPS=""
- fi
- if [ "$PSTOPS" != "" ];then
- echo \[psconvert2\] >>/opt/brother/Printers/DCP1510/inf/brDCP1510func
- echo pstops=$PSTOPS >>/opt/brother/Printers/DCP1510/inf/brDCP1510func
- fi
-fi
-
-ln -s /opt/brother/Printers/DCP1510/inf/brDCP1510rc /etc/opt/brother/Printers/DCP1510/inf/brDCP1510rc
-
-if [ ! -e /usr/bin/brprintconflsr3_DCP1510 ];then
- echo "#! /bin/sh" > /usr/bin/brprintconflsr3_DCP1510
- echo "/opt/brother/Printers/DCP1510/lpd/brprintconflsr3 -P DCP1510" '$''*' >>/usr/bin/brprintconflsr3_DCP1510
- chmod 755 /usr/bin/brprintconflsr3_DCP1510
-fi
-
-
-if [ -e /usr/lib/cups/filter ] && [ ! -e /usr/lib/cups/filter/brother_lpdwrapper_DCP1510 ];then
- ln -s /opt/brother/Printers/DCP1510/cupswrapper/brother_lpdwrapper_DCP1510 /usr/lib/cups/filter
-fi
-if [ -e /usr/lib32/cups/filter ] && [ ! -e /usr/lib32/cups/filter/brother_lpdwrapper_DCP1510 ];then
- ln -s /opt/brother/Printers/DCP1510/cupswrapper/brother_lpdwrapper_DCP1510 /usr/lib32/cups/filter
-fi
-if [ -e /usr/lib64/cups/filter ] && [ ! -e /usr/lib64/cups/filter/brother_lpdwrapper_DCP1510 ];then
- ln -s /opt/brother/Printers/DCP1510/cupswrapper/brother_lpdwrapper_DCP1510 /usr/lib64/cups/filter
-fi
-if [ -e /usr/libexec/cups/filter ] && [ ! -e /usr/libexec/cups/filter/brother_lpdwrapper_DCP1510 ];then
- ln -s /opt/brother/Printers/DCP1510/cupswrapper/brother_lpdwrapper_DCP1510 /usr/libexec/cups/filter
-fi
-
-if [ -e /usr/share/cups/model ];then
- ln -s /opt/brother/Printers/DCP1510/cupswrapper/brother-DCP1510-cups-en.ppd /usr/share/cups/model
- PPDDIR=/usr/share/cups/model/
-fi
-if [ -e /usr/share/ppd ];then
- if [ ! -e /usr/share/ppd/brother ];then
- mkdir /usr/share/ppd/brother
- fi
- ln -s /opt/brother/Printers/DCP1510/cupswrapper/brother-DCP1510-cups-en.ppd /usr/share/ppd/brother
- PPDDIR=/usr/share/ppd/brother/
-fi
-uris=$(lpinfo -v)
-
-for uri in $uris
-do
- URI=$(echo $uri | grep DCP-1510 | grep usb)
- if [ "$URI" != '' ];then
- break;
- fi
-done
-
-if [ "$URI" = '' ];then
- for uri in $uris
- do
- URI=$(echo $uri | grep DCP-1510)
- if [ "$URI" != '' ];then
- break;
- fi
- done
-fi
-if [ "$URI" = '' ];then
- for uri in $uris
- do
- URI=$(echo $uri | grep -i Brother | grep usb)
- if [ "$URI" != '' ];then
- break;
- fi
- done
-fi
-if [ "$URI" = '' ];then
- for uri in $uris
- do
- URI=$(echo $uri | grep usb)
- if [ "$URI" != '' ];then
- break;
- fi
- done
-fi
-if [ "$URI" = '' ];then
- URI="usb://dev/usb/lp0"
-fi
-if [ "$(which semanage 2> /dev/null)" != '' ];then
- semanage fcontext -a -t cupsd_rw_etc_t '/etc/opt/brother/Printers/DCP1510/inf(/.*)?'
- semanage fcontext -a -t cupsd_rw_etc_t '/opt/brother/Printers/DCP1510/inf(/.*)?'
- semanage fcontext -a -t bin_t '/opt/brother/Printers/DCP1510/lpd(/.*)?'
- semanage fcontext -a -t bin_t '/opt/brother/Printers/DCP1510/cupswrapper(/.*)?'
-
- if [ "$(which restorecon 2> /dev/null)" != '' ];then
- restorecon -R /opt/brother/Printers/DCP1510
- restorecon -R /etc/opt/brother/Printers/DCP1510
- fi
-fi
-
-echo "Start your cups service:"
-echo ">>> systemctl start org.cups.cupsd"
-echo "and add your printer in http://localhost:631/admin"
-}
-
-pre_remove() {
-/opt/brother/Printers/DCP1510/inf/setupPrintcap DCP1510 -e USB
-/opt/brother/Printers/DCP1510/inf/braddprinter -e DCP1510
-rm -fR /var/spool/lpd/DCP1510/* 2>/dev/null
-rm /etc/opt/brother/Printers/DCP1510/inf/brDCP1510rc 2>/dev/null
-
-if [ -e /usr/bin/brprintconflsr3_DCP1510 ];then
- rm /usr/bin/brprintconflsr3_DCP1510
-fi
-
-if [ -e /usr/lib/cups/filter/brother_lpdwrapper_DCP1510 ];then
- rm /usr/lib/cups/filter/brother_lpdwrapper_DCP1510
-fi
-if [ -e /usr/lib32/cups/filter/brother_lpdwrapper_DCP1510 ];then
- rm /usr/lib32/cups/filter/brother_lpdwrapper_DCP1510
-fi
-if [ -e /usr/lib64/cups/filter/brother_lpdwrapper_DCP1510 ];then
- rm /usr/lib64/cups/filter/brother_lpdwrapper_DCP1510
-fi
-if [ -e /usr/libexec/cups/filter/brother_lpdwrapper_DCP1510 ];then
- rm /usr/libexec/cups/filter/brother_lpdwrapper_DCP1510
-fi
-if [ -e /usr/share/ppd/brother/brother-DCP1510-cups-en.ppd ];then
- rm /usr/share/ppd/brother/brother-DCP1510-cups-en.ppd
- rmdir /usr/share/ppd/brother 2> /dev/null
-fi
-if [ -e /usr/share/cups/model/brother-DCP1510-cups-en.ppd ];then
- rm /usr/share/cups/model/brother-DCP1510-cups-en.ppd
-fi
-}
-
-post_remove() {
-if [ "$(which semanage 2> /dev/null)" != '' ];then
- semanage fcontext -d -t cupsd_rw_etc_t '/opt/brother/Printers/DCP1510/inf(/.*)?'
- semanage fcontext -d -t cupsd_rw_etc_t '/etc/opt/brother/Printers/DCP1510/inf(/.*)?'
- semanage fcontext -d -t bin_t '/opt/brother/Printers/DCP1510/lpd(/.*)?'
- semanage fcontext -d -t bin_t '/opt/brother/Printers/DCP1510/cupswrapper(/.*)?'
-
- if [ "$(which restorecon 2> /dev/null)" != '' ];then
- restorecon -R /opt/brother/Printers/DCP1510
- restorecon -R /etc/opt/brother/Printers/DCP1510
- fi
-fi
+echo ""
+echo ">>> Start your cups service:"
+echo ">>> systemctl start org.cups.cupsd"
+echo ">>> and add your printer in http://localhost:631/admin"
+echo ""
}