Want more features on Pastebin? Sign Up, it's FREE!
Guest

cec-firmware-upgrade - PKGBUILD

By: a guest on Dec 14th, 2014  |  syntax: None  |  size: 0.98 KB  |  views: 164  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Philippe Cherel <philippe.cherel at mayenne dot org>
  2.  
  3. pkgname=cec-firmware-upgrade
  4. pkgver=0.4
  5. pkgrel=1
  6. pkgdesc="Pulse-Eight's firmware upgrade program for the Pulse-Eight USB-CEC adapter"
  7. arch=('i686' 'x86_64')
  8. url="https://github.com/Pulse-Eight/libcec"
  9. license=('GPL')
  10. depends=('libusb-compat')
  11. provides=('cec-firmware-upgrade')
  12.  
  13. [ "$CARCH" = i686   ] && source=(http://packages.pulse-eight.net/ubuntu/pool/stable/dists/trusty/$pkgname"_"$pkgver"_"i386.deb)
  14. [ "$CARCH" = x86_64 ] && source=(http://packages.pulse-eight.net/ubuntu/pool/stable/dists/trusty/$pkgname"_"$pkgver"_"amd64.deb)
  15. [ "$CARCH" = i686   ] && md5sums=('26d4c9a1f87b99dfad92d3b5f4fe751e')
  16. [ "$CARCH" = x86_64 ] && md5sums=('5c7f8d0ba0ceba652faa1024be586527')
  17.  
  18. package() {
  19.   [ "$CARCH" = i686   ] && ar x "${srcdir}/$pkgname"_"$pkgver"_"i386.deb"
  20.   [ "$CARCH" = x86_64 ] && ar x "${srcdir}/$pkgname"_"$pkgver"_"amd64.deb"
  21.  
  22.   tar -xpf "${srcdir}/data.tar.xz"
  23.   cp -r "${srcdir}/usr/" "${pkgdir}"
  24. }
clone this paste RAW Paste Data