Advertisement
Guest User

PKGBULD of brother-ql500-lpr (archlinux)

a guest
May 25th, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.03 KB | None | 0 0
  1. # Contributor: K. Hampf <khampf@users.sourceforge.net>
  2. pkgname=brother-ql500-lpr
  3. pkgver=1.0.1
  4. pkgrel=1
  5. pkgdesc="Brother LPR driver for P-Touch QL-500 labelprinter"
  6. url="http://solutions.brother.com/linux/en_us/"
  7. arch=('i686' 'x86_64')
  8. license=("custom:brother")
  9. depends=('cups' 'ghostscript')
  10. makedepends=('rpmextract')
  11. source=("http://www.brother.com/pub/bsc/linux/dlf/ql500lpr-${pkgver}-0.i386.rpm"
  12.         'license.txt')
  13. md5sums=('cfbe68328d8ef6afb1e05e6b7642f02f'
  14.          '47cf89c2ae034aaf18ea0a6379c897da')
  15. noextract=("ql500lpr-$pkgver-0.i386.rpm")
  16. install='lpr.install'
  17.  
  18. build() {
  19.         cd $srcdir
  20.         rpmextract.sh "ql500lpr-$pkgver-0.i386.rpm" || return 1
  21.         rm "ql500lpr-$pkgver-0.i386.rpm"
  22.        
  23.         mkdir -p usr/share/ || return 1
  24.         rm -rf usr/share/brother
  25.         mv opt/brother usr/share/brother || return 1
  26.         rmdir opt || return 1
  27. }
  28.  
  29. package() {
  30.     mv usr $pkgdir/. || return 1
  31.         install -D -m644 license.txt $pkgdir/usr/share/licenses/$pkgname/license.txt || return 1
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement