Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

hsfmodem-7.80.02.06full PKGBUIILD

By: a guest on Dec 24th, 2010  |  syntax: Bash  |  size: 1.24 KB  |  views: 219  |  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. pkgname=hsfmodem
  2. pkgver=7.80.02.06full
  3. pkgrel=1
  4. pkgdesc="Linux drivers for the Conexant HSF Softmodem family (kernel modules)"
  5. arch=('i686' 'x86_64')
  6. url="http://www.linuxant.com/drivers/hsf/"
  7. license=('GPL' 'custom')
  8. depends=("hsfmodem-utils>=$pkgver" 'kernel26')
  9. install=hsfmodem.install
  10.  
  11. case "$CARCH" in
  12.   i686)
  13.     source=("http://www.linuxant.com/drivers/hsf/full/archive/hsfmodem-${pkgver}/hsfmodem-${pkgver}.tar.gz"
  14.             'fix-deprecated-include.patch')
  15.     md5sums=('8eb0935e86b898190bf20c08894af17e' '7d25b8df41fd53c9b0c7ebc3527402cf')
  16.     ;;
  17.   x86_64)
  18.     source=("http://www.linuxant.com/drivers/hsf/full/archive/hsfmodem-${pkgver%full}${CARCH}full/hsfmodem-${pkgver%full}${CARCH}full.tar.gz"
  19.             'fix-deprecated-include.patch')
  20.     md5sums=('74df1a0af818a918a68b38bf9a01599b' '7d25b8df41fd53c9b0c7ebc3527402cf')
  21.     ;;
  22. esac
  23.  
  24. build() {
  25.   cd $srcdir/${pkgname}-${pkgver%full}*full/
  26.   patch -Np1 -i ../fix-deprecated-include.patch
  27.   cd $srcdir/${pkgname}-${pkgver%full}*full/modules/
  28.  
  29.   make CNXT_MODS_DIR=$pkgdir/lib/modules/$(uname -r)/extra modules_install || return 1
  30.   make CNXTLIBDIR=$pkgdir/usr/lib/hsfmodem CNXT_MODS_DIR=$pkgdir/lib/modules/$(uname -r)/extra modules_install
  31. }
  32.  
  33. # vim:set ts=2 sw=2 et: