[arch-commits] CVS update of extra/modules/catalyst (PKGBUILD catalyst.install)

Travis Willard travis at archlinux.org
Thu Nov 22 04:30:36 UTC 2007


    Date: Wednesday, November 21, 2007 @ 23:30:36
  Author: travis
    Path: /home/cvs-extra/extra/modules/catalyst

   Added: PKGBUILD (1.1) catalyst.install (1.1)

upgpkg: catalyst 7.11-1
Upstream update of fglrx, along with a rebranding and reversioning.  It's now catalyst-7.11, and the previous version was fglrx-8.42.3.  Whee


------------------+
 PKGBUILD         |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 catalyst.install |   35 +++++++++++++++++++++++++++++++
 2 files changed, 93 insertions(+)


Index: extra/modules/catalyst/PKGBUILD
diff -u /dev/null extra/modules/catalyst/PKGBUILD:1.1
--- /dev/null	Wed Nov 21 23:30:36 2007
+++ extra/modules/catalyst/PKGBUILD	Wed Nov 21 23:30:35 2007
@@ -0,0 +1,58 @@
+# $Id: PKGBUILD,v 1.1 2007/11/22 04:30:35 travis Exp $
+# Maintainer: Travis Willard <travisw at wmpub.ca>
+# Contributor: amdviaman
+
+pkgname=catalyst
+pkgver=7.11
+_kernel_version=2.6.23
+pkgrel=1
+pkgdesc="Proprietary AMD/ATI kernel drivers for Radeon brand cards. Stock kernel."
+arch=('i686' 'x86_64')
+url="http://www.ati.amd.com"
+license=('custom') 
+depends=("catalyst-utils>=${pkgver}" "kernel26>=>=2.6.23.8-1")
+makedepends=()
+replaces=('ati-fglrx' 'fglrx') # damnit, I wish AMD/ATI would quit rebranding
+install=${pkgname}.install
+source=(http://www2.ati.com/drivers/linux/ati-driver-installer-${pkgver/./-}-x86.x86_64.run)
+md5sums=('099eead18eb845f83da1d743dc17cc47')
+
+_kernver=${_kernel_version}-ARCH
+
+build() {
+    cd $startdir/src
+
+    [ "$CARCH" = "i686" ] && _arch="x86"
+    [ "$CARCH" = "x86_64" ] && _arch="x86_64"
+
+    chmod a+x ati-driver-installer-${pkgver/./-}-x86.x86_64.run
+    ./ati-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files
+
+
+    cp $startdir/src/archive_files/arch/${_arch}/* $startdir/src/ -r 
+    cp $startdir/src/archive_files/common/* $startdir/src/ -r 
+
+    if [ "$CARCH" == "x86_64" ]; then
+      cp $startdir/src/archive_files/x710_64a/* $startdir/src/ -r
+    else
+      cp $startdir/src/archive_files/x710/* $startdir/src/ -r
+    fi
+    cd $startdir/src
+    cd $startdir/src/lib/modules/fglrx/build_mod/
+
+    # Build the kernel module
+    cp 2.6.x/Makefile .
+    make -C /lib/modules/${_kernver}/build SUBDIRS="`pwd`" modules || return 1
+
+    # Install the kernel module
+    install -m 644 -D $startdir/src/lib/modules/fglrx/build_mod/fglrx.ko \
+        $startdir/pkg/lib/modules/${_kernver}/video/fglrx.ko
+
+    sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/$install
+
+    # install licenses
+    install -m 0644 -D $startdir/src/archive_files/ATI_LICENSE.TXT \
+                     $startdir/pkg/usr/share/licenses/${pkgname}/AMD_ATI_LICENSE.TXT
+
+}
+
Index: extra/modules/catalyst/catalyst.install
diff -u /dev/null extra/modules/catalyst/catalyst.install:1.1
--- /dev/null	Wed Nov 21 23:30:36 2007
+++ extra/modules/catalyst/catalyst.install	Wed Nov 21 23:30:36 2007
@@ -0,0 +1,35 @@
+# This is a default template for a post-install scriptlet.  You can
+# remove any functions you don't need (and this header).
+
+# arg 1:  the new package version
+pre_install() {
+  /bin/true
+}
+
+# arg 1:  the new package version
+post_install() {
+  echo "PLEASE NOTE:"
+  echo "--------------------------------------------------------------"
+  echo "You can use the tool 'aticonfig' to generate an xorg.conf file."
+  echo "Remember to add fglrx to the MODULES list in /etc/rc.conf."
+  echo "--------------------------------------------------------------"
+  KERNEL_VERSION=2.6.23-ARCH
+  depmod -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+  KERNEL_VERSION=2.6.23-ARCH
+  depmod -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+# arg 1:  the old package version
+post_remove() {
+  KERNEL_VERSION=2.6.23-ARCH
+  depmod -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+op=$1
+shift
+$op $*




More information about the arch-commits mailing list