updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / psb-kmod / PKGBUILD
blob8898f314df66fb9f14bfbb45c7162faa7c586f91
1 # Contributor: Chris Griffith <codelicious.griffith at gmail dot com>
2 # Maintainer: Sergey Tereschenko <serg.partizan at gmail dot com>
3 pkgname=psb-kmod
4 _origname=psb-kernel-source
5 pkgver=4.42.0
6 pkgrel=4
7 ubuntu=0ubuntu2~1010um5
8 pkgdesc="Kernel module for Poulsbo(GMA500) graphics chipsets"
9 arch=('i686')
10 url="https://launchpad.net/~gma500/"
11 license=('GPL2')
12 groups=()
13 depends=('kernel26>=2.6.30' 'kernel26<=2.6.37' 'psb-firmware>=0.30')
14 makedepends=('kernel26-headers' 'rpmextract')
15 optdepends=()
16 provides=()
17 conflicts=()
18 replaces=()
19 backup=()
20 options=()
21 install=
22 changelog=ChangeLog
23 source=(
24     "http://ppa.launchpad.net/gma500/ppa/ubuntu/pool/main/p/psb-kernel-source/${_origname}_${pkgver}-${ubuntu}.tar.gz"
25     "2.6.36-ioctl.dpatch"
26     )
27 noextract=()
29 build() {
30     cd ${srcdir}/${_origname}
32     #apply patches
33     for p in `grep -v "^#" debian/patches/00list`
34     do
35         [ ${p} == "06_i2c-intelfb.dpatch" ] && continue
36         patch -Np1 -i debian/patches/${p} || return 1
37     done
38     patch -Np1 -i ../2.6.36-ioctl.dpatch
40     #compile
41     make DRM_MODULES="psb" || return 1
44 package () {
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')