1 # Contributor: Chris Griffith <codelicious.griffith at gmail dot com>
2 # Maintainer: Sergey Tereschenko <serg.partizan at gmail dot com>
4 _origname=psb-kernel-source
7 ubuntu=0ubuntu2~1010um5
8 pkgdesc="Kernel module for Poulsbo(GMA500) graphics chipsets"
10 url="https://launchpad.net/~gma500/"
13 depends=('kernel26>=2.6.30' 'kernel26<=2.6.37' 'psb-firmware>=0.30')
14 makedepends=('kernel26-headers' 'rpmextract')
24 "http://ppa.launchpad.net/gma500/ppa/ubuntu/pool/main/p/psb-kernel-source/${_origname}_${pkgver}-${ubuntu}.tar.gz"
30 cd ${srcdir}/${_origname}
33 for p in `grep -v "^#" debian/patches/00list`
35 [ ${p} == "06_i2c-intelfb.dpatch" ] && continue
36 patch -Np1 -i debian/patches/${p} || return 1
38 patch -Np1 -i ../2.6.36-ioctl.dpatch
41 make DRM_MODULES="psb" || return 1
45 cd ${srcdir}/${_origname}
47 install -dm 755 ${pkgdir}/lib/modules/$(uname -r)/extra/psb
48 install -m 755 drm-psb.ko ${pkgdir}/lib/modules/$(uname -r)/extra/psb
49 install -m 755 psb.ko ${pkgdir}/lib/modules/$(uname -r)/extra/psb
52 md5sums=('0d1401e8f63abaa6c059b9ebf2c76880'
53 '203bd11b2e21ffd9ce2e83bf6998bd92')