1 # Contributor: Troels Liebe Bentsen <tlb@rapanden.dk>
6 pkgdesc="Proprietary kernel drivers/modules for the AMD/ATI RADEON (9500 and later), \
7 MOBILITY RADEON (M10 and later), RADEON XPRESS IGP and FireGL (Z1 and later) series of graphics accelerators."
9 url="http://www.ati.com"
10 license=('custom:"ATI"') #license provided by ati-fglrx-utils package
11 depends=('dkms' 'fglrx-utils>=8.39.4')
12 replace=('fglrx' 'fglrx-ck' 'fglrx-suspend2' 'fglrx-mm')
13 conflicts=('fglrx' 'fglrx-ck' 'fglrx-suspend2' 'fglrx-mm')
14 provides=('fglrx' 'fglrx-ck' 'fglrx-suspend2' 'fglrx-mm')
16 source=(http://www2.ati.com/drivers/linux/ati-driver-installer-$pkgver-x86.x86_64.run
19 md5sums=('0d04bccfc0baf8defafa8f66b53a0ef6'
20 'f2b6b19e7275f93d6f9a9a65f296e2d3')
23 [ "$CARCH" = "i686" ] && _arch="x86"
24 [ "$CARCH" = "x86_64" ] && _arch="x86_64"
26 chmod a+x ati-driver-installer-$pkgver-x86.x86_64.run
27 ./ati-driver-installer-$pkgver-x86.x86_64.run --extract archive_files
29 cp $startdir/src/archive_files/arch/${_arch}/* $startdir/src/ -r
30 cp $startdir/src/archive_files/common/* $startdir/src/ -r
32 if [ "$CARCH" == "x86_64" ]; then
33 cp $startdir/src/archive_files/x710_64a/* $startdir/src/ -r
35 cp $startdir/src/archive_files/x710/* $startdir/src/ -r
39 cd $startdir/src/lib/modules/fglrx/build_mod/
42 mkdir -p $startdir/pkg/usr/src/
43 cp -a $startdir/src/lib/modules/fglrx/build_mod/ $startdir/pkg/usr/src/$_modname-$pkgver-$pkgrel
45 sed -i -e "s/PACKAGE_VERSION=\".*\"/PACKAGE_VERSION=\"${pkgver}-${pkgrel}\"/" $startdir/dkms.conf
46 cp $startdir/dkms.conf $startdir/pkg/usr/src/$_modname-$pkgver-$pkgrel/