added lib32-catalyst-utils

This commit is contained in:
Giuseppe 2011-01-15 18:52:42 +00:00
parent 6031f416a0
commit 1c2677eb28
3 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,55 @@
# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
# Partly based on original PKGBUILD by Mikko Seppala <t-r-a-y@mbnet.fi>
# Contributor: Manuel Gaul <inkaine@hotmail.com>
# Contributor: Vi0L0 <vi0l093@gmail.com>
_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
}

View File

@ -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
}

View File

@ -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