updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ceton_infinitv / PKGBUILD
blob7d73a5e91ff4313122efb6771118f12a779c4596
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: Your Name <youremail@domain.com>
7 pkgname=ceton_infinitv
8 pkgver=1.4
9 pkgrel=2
10 pkgdesc="Driver for Ceton InfiniTV"
11 arch=('i686' 'x86_64')
12 url="http://www.cetoncorp.com/infinitv/support/linux.php"
13 license=('GPL')
14 depends=('linux-headers' 'linux')
15 makedepends=()
16 source=(http://www.cetoncorp.com/firmware/${pkgname}_linux_driver_1_4.tar.gz)
17 install=${pkgname}.install
18 sha1sums=('64862c5c9c0cd62d08359ebaac7866fce0d4cc33')
20 build() {
21   cd "$srcdir/${pkgname}_linux_driver"
22   sed -i -e 's/DMA_32BIT_MASK/DMA_BIT_MASK(32)/g' ctn91xx_pci.c
23   make
26 package() {
27   cd "$srcdir/${pkgname}_linux_driver"
28   KERNEL_VERSION=`uname -r`
29   KERNEL_DIR=/lib/modules/$KERNEL_VERSION/build
30         install -D -m644 ctn91xx.ko ${pkgdir}/lib/modules/$KERNEL_VERSION/extra/ctn91xx.ko
31         gzip -9 ${pkgdir}/lib/modules/$KERNEL_VERSION/extra/ctn91xx.ko
32         install -D -m644 98-ctn91xx.rules ${pkgdir}/etc/udev/rules.d/98-ctn91xx.rules
35 # vim:set ts=2 sw=2 et: