summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/plextor-convertX-driver/PKGBUILD
blob: fb503fb1a21330dce3bc124be415b3d349be772c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31


pkgname=plextor-convertX-driver
pkgver=0.9.8
pkgrel=3
_kernver=2.6.27-ARCH
pkgdesc="Drivers for Plextor tuners"
arch=(i686 x86_64)
url="http://nikosapi.org/software/WIS_Go7007"
install="convertX.install"
source=("http://nikosapi.org/software/WIS_Go7007/wis-go7007-linux-0.9.8-2.tar.bz2" 'wis-go7007-2.6.26-nopage.diff' 'wis-go7007-linux-0.9.8-2-2.6.27.patch')
depends=('udev>=070' 'fxload')
makedepends=('gcc')

build() {
   
  # SET UP
  cd $startdir/src/wis-go7007-linux-0.9.8-2 || return 1
  patch -Np1 -i ../wis-go7007-2.6.26-nopage.diff || return 1
  patch -Np1 -i ../wis-go7007-linux-0.9.8-2-2.6.27.patch || return 1
  # build
  make clean ||  return 1
  make || return 1
  mkdir -p $startdir/pkg/usr/src/linux-$_kernver/include/linux
  mkdir -p $startdir/pkg/etc/udev/rules.d
  mkdir -p $startdir/pkg/usr/bin
  # install
  make DESTDIR=$startdir/pkg install || return 1
  install -m755 apps/gorecord $startdir/pkg/usr/bin/gorecord
  install -m755 apps/modet $startdir/pkg/usr/bin/modet
}