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>
10 pkgdesc="Driver for Ceton InfiniTV"
11 arch=('i686' 'x86_64')
12 url="http://www.cetoncorp.com/infinitv/support/linux.php"
14 depends=('linux-headers' 'linux')
16 source=(http://www.cetoncorp.com/firmware/${pkgname}_linux_driver_1_4.tar.gz)
17 install=${pkgname}.install
18 sha1sums=('64862c5c9c0cd62d08359ebaac7866fce0d4cc33')
21 cd "$srcdir/${pkgname}_linux_driver"
22 sed -i -e 's/DMA_32BIT_MASK/DMA_BIT_MASK(32)/g' ctn91xx_pci.c
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: