Commit 4ad5fb97 authored by Anke's avatar Anke
Browse files

catalyst update to 12.2

parent 757020d5
......@@ -5,7 +5,7 @@
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=catalyst-utils
pkgver=11.11
pkgver=12.2
pkgrel=1
pkgdesc="AMD/ATI Catalyst drivers utilities and libraries."
arch=('i686' 'x86_64')
......@@ -19,18 +19,18 @@ provides=('libgl' "libatical=${pkgver}")
install=${pkgname}.install
source=(
http://www2.ati.com/drivers/linux/ati-driver-installer-${pkgver/./-}-x86.x86_64.run
http://www2.ati.com/drivers/linux/amd-driver-installer-${pkgver/./-}-x86.x86_64.run
catalyst.sh
amdcccle.desktop
atieventsd.sh)
md5sums=('7196077aacfbaf7234a705f5352a1111'
md5sums=('7764bd0343ed542a8e0ebed05e347865'
'bdafe749e046bfddee2d1c5e90eabd83'
'4efa8414a8fe9eeb50da38b5522ef81d'
'f729bf913613f49b0b9759c246058a87')
build() {
## Unpack archive
/bin/sh ./ati-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files
/bin/sh ./amd-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files
}
package() {
......
......@@ -9,8 +9,8 @@ _extramodules=extramodules-`pacman -Q linux | cut -c7-9 | sed 's/linux //g'`-CHA
_kver="$(cat /lib/modules/${_extramodules}/version)"
pkgname=catalyst
pkgver=11.11
pkgrel=7
pkgver=12.2
pkgrel=1
pkgdesc="AMD/ATI Catalyst drivers for linux. fglrx kernel module only"
arch=('i686' 'x86_64')
url="http://www.ati.amd.com"
......@@ -20,13 +20,15 @@ makedepends=('gcc-libs' 'gcc>4.0.0' 'make' 'linux-headers')
conflicts=('catalyst-test' 'nvidia' 'xf86-video-ati' 'xf86-video-radeonhd' 'ati-dri')
install=${pkgname}.install
source=(http://www2.ati.com/drivers/linux/ati-driver-installer-${pkgver/./-}-x86.x86_64.run
source=(http://www2.ati.com/drivers/linux/amd-driver-installer-${pkgver/./-}-x86.x86_64.run
ati_make.sh
makefile_compat.patch)
makefile_compat.patch
3.2.8.patch)
md5sums=('7196077aacfbaf7234a705f5352a1111'
md5sums=('7764bd0343ed542a8e0ebed05e347865'
'660396540b0ceaff71d6155c986734de'
'3e1b82bd69774ea808da69c983d6a43b')
'3e1b82bd69774ea808da69c983d6a43b'
'32c8142c73dcfed5db426f494feda9e3')
......@@ -39,7 +41,7 @@ build() {
msg "Unpacking archive ..."
/bin/sh ./ati-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files
/bin/sh ./amd-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files
if [ "${CARCH}" = "x86_64" ]; then
......@@ -57,7 +59,9 @@ build() {
msg "Applying patch(es) ..."
## makefile patch to choose arch_compat_alloc_user_space or older compat_alloc_user_space
## works only in combination with ati_make.sh script
patch -Np1 -i ../makefile_compat.patch
patch -Np1 -i ../makefile_compat.patch
patch -Np1 -i ../3.2.8.patch
#if [[ ${_kver:0:6} < "2.6.39" ]] && [[ `cat /lib/modules/${_kver}/build/.config | grep -c CONFIG_BKL=y` = 0 ]]; then
# patch -Np1 -i ../no_bkl.patch
......@@ -76,6 +80,21 @@ build() {
}
package() {
## here we are checking kernel's extramodules dir
for r in /lib/modules/*; do
s=${r:13}
if [[ ${s:0:3} = "ext" ]]; then
if [[ `cat ${r}/version | grep -c ${_kernver}` != 0 ]]; then
_destidir=${s}
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=${s}/" $startdir/catalyst.install
fi
elif [[ ${s} = ${_kernver} ]] && [[ ! -e ${r}/extramodules ]]; then
_destidir=${_kernver}/video
sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=null/" $startdir/catalyst.install
fi
done
cd "${srcdir}/archive_files/common/lib/modules/fglrx/build_mod"
install -m755 -d "${pkgdir}/lib/modules/${_extramodules}"
install -m644 fglrx.ko "${pkgdir}/lib/modules/${_extramodules}"
......
......@@ -11,18 +11,18 @@ remove_hook(){
}
post_install() {
EXTRAMODULES='extramodules-3.2-CHAKRA'
EXTRAMODULES=extramodules-3.2-CHAKRA
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_upgrade() {
remove_hook
EXTRAMODULES='extramodules-3.2-CHAKRA'
EXTRAMODULES=extramodules-3.2-CHAKRA
depmod $(cat /lib/modules/$EXTRAMODULES/version)
}
post_remove() {
EXTRAMODULES='extramodules-3.2-CHAKRA'
EXTRAMODULES=extramodules-3.2-CHAKRA
depmod $(cat /lib/modules/$EXTRAMODULES/version)
echo "----------------------------------------------------------------"
echo "Don't forget to remove fglrx from MODULES array of /etc/rc.conf"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment