From 1c2677eb288f67984c9fab44ec03d9e81b0d1c28 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Sat, 15 Jan 2011 18:52:42 +0000 Subject: [PATCH] added lib32-catalyst-utils --- lib32-catalyst-utils/PKGBUILD | 55 +++++++++++++++++++ .../lib32-catalyst-utils.install | 15 +++++ lib32-catalyst-utils/lib32-catalyst.sh | 2 + 3 files changed, 72 insertions(+) create mode 100644 lib32-catalyst-utils/PKGBUILD create mode 100644 lib32-catalyst-utils/lib32-catalyst-utils.install create mode 100644 lib32-catalyst-utils/lib32-catalyst.sh diff --git a/lib32-catalyst-utils/PKGBUILD b/lib32-catalyst-utils/PKGBUILD new file mode 100644 index 0000000..e98ef77 --- /dev/null +++ b/lib32-catalyst-utils/PKGBUILD @@ -0,0 +1,55 @@ +# Lib32 Packages for Chakra, part of chakra-project.org +# +# maintainer (x86_64): Giuseppe CalĂ  +# maintainer (x86_64): Anke Boersma + +# Partly based on original PKGBUILD by Mikko Seppala +# Contributor: Manuel Gaul +# Contributor: Vi0L0 + +_pkgsourcename=catalyst-utils +pkgname=lib32-$_pkgsourcename +pkgver=10.12 +pkgrel=1 +pkgdesc="AMD/ATI catalyst driver utilities and libraries. (32-bit)" +url="http://www.ati.amd.com" +arch=(x86_64) +license=('custom') +groups=('lib32') +depends=('lib32-libxext' 'lib32-libdrm' "catalyst-utils>=${pkgver}") +conflicts=('lib32-libgl' 'lib32-nvidia-utils') +replaces=('lib32-ati-fglrx-utils' 'lib32-fglrx-utils' 'lib32-libgl') +provides=('lib32-libgl') +source=(http://www2.ati.com/drivers/linux/ati-driver-installer-${pkgver/./-}-x86.x86_64.run lib32-catalyst.sh) +md5sums=('debf1518bd58c49b49aafddbae60b748' 'af7fb8ee4fc96fd54c5b483e33dc71c4') +install=${pkgname}.install + +build() { + # Extract Catalyst driver installer + /bin/sh ./ati-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files +} + +package() { + cd ${srcdir} + install -D -m755 lib32-catalyst.sh ${pkgdir}/etc/profile.d/lib32-catalyst.sh || return 1 + + # Install lib32 libraries + cd "${srcdir}/archive_files/arch/x86/usr" || return 1 + install -dm755 "${pkgdir}/usr/lib32" || return 1 + install -dm755 "${pkgdir}/usr/lib32/xorg/modules/dri" || return 1 + install -m755 lib/*.so* "${pkgdir}/usr/lib32/" || return 1 + install -m755 X11R6/lib/*.so* "${pkgdir}/usr/lib32/" || return 1 + install -m755 X11R6/lib/modules/dri/*.so "${pkgdir}/usr/lib32/xorg/modules/dri/" || return 1 + + cd "$pkgdir/usr/lib32/" || return 1 + ln -sf libfglrx_dm.so.1.0 libfglrx_dm.so.1 || return 1 + # ln -sf libfglrx_pp.so.1.0 libfglrx_pp.so.1 || return 1 + # ln -sf libfglrx_tvout.so.1.0 libfglrx_tvout.so.1 || return 1 + ln -sf libfglrx_gamma.so.1.0 libfglrx_gamma.so.1 || return 1 + ln -sf libAMDXvBA.so.1.0 libAMDXvBA.so.1 || return 1 + ln -sf libXvBAW.so.1.0 libXvBAW.so.1 || return 1 + ln -sf libGL.so.1.2 libGL.so.1 || return 1 + ln -sf libGL.so.1.2 libGL.so || return 1 + ln -sf libatiuki.so.1.0 libatiuki.so.1 || return 1 + ln -sf libatiuki.so.1.0 libatiuki.so || return 1 +} diff --git a/lib32-catalyst-utils/lib32-catalyst-utils.install b/lib32-catalyst-utils/lib32-catalyst-utils.install new file mode 100644 index 0000000..77dce06 --- /dev/null +++ b/lib32-catalyst-utils/lib32-catalyst-utils.install @@ -0,0 +1,15 @@ +whisperer(){ + echo "----------------------------------------------------------------" + echo "!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT !!!!!!!!!!!!!!!!!!!!!!!!!!!!" + echo "lib32-catalyst-utils works now with [lib32] repository" + echo "You _NEED_ to read this:" + echo "----------------------------------------------------------------" +} + +post_install() { + whisperer +} + +post_upgrade() { + whisperer +} \ No newline at end of file diff --git a/lib32-catalyst-utils/lib32-catalyst.sh b/lib32-catalyst-utils/lib32-catalyst.sh new file mode 100644 index 0000000..4f5d55b --- /dev/null +++ b/lib32-catalyst-utils/lib32-catalyst.sh @@ -0,0 +1,2 @@ +# Hope theyre still same as in fglrx, thanks Pierre +export LIBGL_DRIVERS_PATH=$LIBGL_DRIVERS_PATH:/usr/lib32/xorg/modules/dri