Advertisement
Guest User

PKGBULD of brother-ql500-cupswrapper (archlinux)

a guest
May 25th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.04 KB | None | 0 0
  1. _pkgname=ql500cupswrapper
  2. pkgver=1.0.1
  3. pkgrel=2
  4. pkgdesc="LPR-to-CUPS wrapper for Brother P-Touch QL-700 labelprinter (metric)"
  5. url="http://solutions.brother.com/linux/en_us/"
  6. arch=('i686' 'x86_64')
  7. license=("GPL2")
  8. if [ $CARCH == "x86_64" ]; then
  9.   depends=('cups' 'ghostscript' 'lib32-glibc' 'brother-ql500-lpr')
  10. else
  11.   depends=('cups' 'ghostscript' 'glibc' 'brother-ql500-lpr')
  12. fi
  13. makedepends=('rpmextract')
  14. source=("http://www.brother.com/pub/bsc/linux/dlf/$_pkgname-$pkgver-0.i386.rpm")
  15. md5sums=('1bc83941faf4a927f62cf96af2c12aee')
  16. noextract=("$_pkgname-$pkgver-0.i386.rpm")
  17. install='cupswrapper.install'
  18.  
  19. build() {
  20.         cd $srcdir
  21.         rpmextract.sh "$_pkgname-$pkgver-0.i386.rpm"
  22.  
  23.         rm -f $_pkgname-$pkgver-0.i386.rpm
  24.  
  25.         mkdir -p usr/share/ || return 1
  26.         rm -rf usr/share/brother
  27.         mv opt/brother usr/share/brother || return 1
  28.         rmdir opt || return 1
  29.  
  30.         sed -i 's|/opt/brother|/usr/share/brother|g' `grep -lr '/opt/brother' ./` || return 1
  31. }
  32.  
  33. package() {
  34.     mv usr $pkgdir/. || return 1
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement