This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 5th, 2013  |  syntax: Bash  |  size: 0.92 KB  |  views: 26  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Garrett Ward <glward1 at gmail dot com>
  2. # Mainainer: Ryan Corder <ryanc@greengrey.org>
  3.  
  4. pkgname=libhdhomerun
  5. pkgver=20120405
  6. pkgrel=2
  7. pkgdesc="Library for interfacing with HDHomeRun device"
  8. arch=('i686' 'x86_64')
  9. url="http://www.silicondust.com/downloads"
  10. license=('LGPL')
  11. source=("http://download.silicondust.com/hdhomerun/${pkgname}_${pkgver}.tgz")
  12. md5sums=('4036d144c726d82b10986533de8c619d')
  13. depends=(glibc)
  14.  
  15. build() {
  16.   cd $srcdir/$pkgname
  17.   make || return 1
  18. }
  19.  
  20. package() {
  21.     cd $srcdir/$pkgname
  22.     mkdir -m 0755 -p $pkgdir/usr/lib || return 1
  23.     mkdir -m 0755 -p $pkgdir/usr/bin || return 1
  24.  
  25.     mkdir -m 0755 -p $pkgdir/usr/include/hdhomerun || return 1
  26.  
  27.     install -m 755 -t $pkgdir/usr/include/hdhomerun $srcdir/$pkgname/*.h
  28.     install -m 755 libhdhomerun.so $pkgdir/usr/lib/libhdhomerun.so || return 1
  29.     install -m 755 hdhomerun_config $pkgdir/usr/bin/hdhomerun_config || return 1
  30. }
clone this paste RAW Paste Data