updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / dkms-emgd / PKGBUILD
blob635189d326171cf6e9864255c18074bbf3092aa7
1 # Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
3 pkgname=dkms-emgd
4 _modname=emgd
5 _modpackage=emgd-dkms
6 pkgver=1.10.0.2209
7 _ubustring=0ubuntu1~ppa2
8 pkgrel=3
9 pkgdesc="Intel EMGD driver in DKMS format."
10 arch=('i686')
11 url="http://edc.intel.com/Software/Downloads/EMGD/"
12 license=('GPL')
13 depends=('dkms' 'xf86-video-emgd' 'xorg-server=1.10.4')
14 makedepends=('make' 'bash')
15 provides=('emgd')
16 install="dkms-emgd.install"
18 source=(https://launchpad.net/~gma500/+archive/emgd110/+files/"${_modpackage}"_"${pkgver}"-"${_ubustring}".tar.gz
19         ${pkgname}.install
20         dkms.conf)
21 md5sums=('210b6afe2cda59b928a206bb474a6a29'
22          'df8d97ca748c17c97ab52ecbc2b122f8'
23          '42a84d3197c2ae70ab6b90640ad4b5dc')
25 build() {
26     # Messages
27     warning "This Driver NEED using Xorg 1.10."
28     echo
29     echo '
30     Please, edit your /etc/pacman.conf and add:
32     [xorg110]
33     Server = http://catalyst.apocalypsus.net/repo/xorg110/$arch
35     Downgrade all your xorg with packages in Xorg110 repo
36     (if need older dependencies, try "http://arm.konnichi.com/extra/os/i686/" 
37      
38         
39     and add to "IgnoreGroup" secction:
41     IgnoreGroup = xorg
43     to prevent possible upgrade
45     read -p "If you apply this, please continue, if not, cancel this installation [y/N] " -n 1
46       if [[ ! $REPLY =~ ^[Yy]$ ]]; then
47         echo
48         return 1
49       fi
50       echo
53 package() {
54     install -d "${pkgdir}"/usr/src/"${_modname}"-"${pkgver}"/
55     cp -R "${srcdir}"/emgd-dkms/* "${pkgdir}"/usr/src/"${_modname}"-"${pkgver}"/
56     install -Dm644 "${srcdir}"/dkms.conf "${pkgdir}"/usr/src/"${_modname}"-"${pkgver}"/
57     install -Dm755 "${srcdir}"/emgd-dkms/COPYING "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING
58     rm -fr "${pkgdir}"/usr/src/"${_modname}"-"${pkgver}"/debian