Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/PKGBUILD b/PKGBUILD
- index 47a6851..9c40185 100644
- --- a/PKGBUILD
- +++ b/PKGBUILD
- @@ -3,7 +3,7 @@
- pkgname=brother-ql500-cupswrapper
- _pkgname=ql500cupswrapper
- pkgver=1.0.1
- -pkgrel=7
- +pkgrel=8
- pkgdesc="LPR-to-CUPS wrapper for Brother P-Touch QL-500 labelprinter (metric)"
- url="http://solutions.brother.com/linux/en_us/"
- arch=('i686' 'x86_64')
- @@ -14,28 +14,28 @@ else
- depends=('cups' 'ghostscript' 'glibc' 'brother-ql500-lpr')
- fi
- makedepends=('rpmextract')
- -source=("http://www.brother.com/pub/bsc/linux/dlf/${_pkgname}-${pkgver}-0.i386.rpm"
- +source=("http://www.brother.com/pub/bsc/linux/dlf/${_pkgname}-$pkgver-0.i386.rpm"
- "cupswrapper.install")
- md5sums=('1bc83941faf4a927f62cf96af2c12aee'
- - 'b220d6326663cb6b29c6a761a8dbef58' )
- -noextract=("${_pkgname}-${pkgver}-0.i386.rpm")
- + '90e88ac4f5a08c871523fb3535774897')
- +noextract=("${_pkgname}-$pkgver-0.i386.rpm")
- install='cupswrapper.install'
- -build() {
- - cd $srcdir
- - rpmextract.sh "${_pkgname}-${pkgver}-0.i386.rpm"
- -
- - rm -f ${_pkgname}-${pkgver}-0.i386.rpm
- +prepare() {
- + cd "$srcdir"
- + rpmextract.sh "${_pkgname}-$pkgver-0.i386.rpm"
- +}
- +build() {
- + cd "$srcdir"
- mkdir -p usr/share/ || return 1
- rm -rf usr/share/brother
- mv opt/brother usr/share/brother || return 1
- rmdir opt || return 1
- -
- sed -i 's|/opt/brother|/usr/share/brother|g' `grep -lr '/opt/brother' ./` || return 1
- }
- package() {
- - mv usr $pkgdir/. || return 1
- + cd "$srcdir"
- + mv usr "$pkgdir/." || return 1
- }
- -
- diff --git a/cupswrapper.install b/cupswrapper.install
- index 29a09f2..e3fcd7b 100644
- --- a/cupswrapper.install
- +++ b/cupswrapper.install
- @@ -7,7 +7,7 @@ pre_install() {
- post_install() {
- /usr/share/brother/PTouch/ql500/cupswrapper/cupswrapperql500pt1
- - systemctl restart cups
- + systemctl restart org.cups.cupsd.service
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement