diff options
author | root <root@rshg054.dnsready.net> | 2012-10-05 01:33:02 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-05 01:33:02 -0700 |
commit | 777466db27694f0cad10a7159ba66f2a2b39a516 (patch) | |
tree | 314603754e3855eea98c7cc25416e7c746e40fcf /multilib | |
parent | c3ff6b4da8966c22dcbf0f5d8a957b875242789f (diff) |
Fri Oct 5 01:33:01 PDT 2012
Diffstat (limited to 'multilib')
-rw-r--r-- | multilib/lib32-catalyst-utils/PKGBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/multilib/lib32-catalyst-utils/PKGBUILD b/multilib/lib32-catalyst-utils/PKGBUILD new file mode 100644 index 000000000..1f57c82b6 --- /dev/null +++ b/multilib/lib32-catalyst-utils/PKGBUILD @@ -0,0 +1,58 @@ +# $Id: PKGBUILD 77082 2012-10-04 12:27:22Z lcarlier $ +# Maintainer: Laurent Carlier <lordheavym@gmail.com> +# Contributor: Vi0L0, wonder, Eduardo "kensai" Romero +# Contributor: aidanlinz, Rip-Rip, OvsInc, Sebastian Siebert + +pkgname=lib32-catalyst-utils +pkgver=12.8 +pkgrel=1 +pkgdesc="AMD Catalyst drivers libraries (32 bits)" +arch=('x86_64') +url="http://www.amd.com" +license=('custom') +source=("http://www2.ati.com/drivers/linux/amd-driver-installer-${pkgver/./-}-x86.x86_64.zip") +md5sums=('41c5478322b13be6909eeb46412a3aa0') +provides=('lib32-libgl') +conflicts=('lib32-libgl' 'lib32-nvidia-utils') +depends=("catalyst-utils=${pkgver}") + +build() { + cd ${srcdir} + + sh ./amd-driver-installer*.run --extract fglrx-install +} + +package() { + install -dm755 "${pkgdir}"/usr/bin + install -dm755 "${pkgdir}"/usr/lib32/{dri,xorg/modules/{dri,extensions/fglrx}} + + # binaries + cd ${srcdir}/fglrx-install + install -m755 arch/x86/usr/X11R6/bin/fgl_glxgears "${pkgdir}/usr/bin/fgl_glxgears32" + install -m755 arch/x86/usr/X11R6/bin/fglrxinfo "${pkgdir}/usr/bin/fglrxinfo32" + + # dri/gl/... drivers + cd ${srcdir}/fglrx-install/xpic/usr/X11R6/lib/modules + install -m755 *.so "${pkgdir}/usr/lib32/xorg/modules/" + cd ${srcdir}/fglrx-install/arch/x86/usr/X11R6/lib + install -m755 modules/dri/fglrx_dri.so "${pkgdir}/usr/lib32/xorg/modules/dri/" + ln -s /usr/lib32/xorg/modules/dri/fglrx_dri.so "${pkgdir}/usr/lib32/dri/" + install -m755 fglrx/fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/" + install -m755 *.so* "${pkgdir}/usr/lib32/" + install -m644 libAMDXvBA.cap "${pkgdir}/usr/lib32/" + cd ${srcdir}/fglrx-install/arch/x86/usr/lib + install -m755 *.so* "${pkgdir}/usr/lib32/" + # needed symlinks + ln -s libatiuki.so.1.0 "${pkgdir}/usr/lib32/libatiuki.so.1" + ln -s fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/libGL.so.1" + ln -s fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/libGL.so" + ln -s libAMDXvBA.so.1.0 "${pkgdir}/usr/lib32/libAMDXvBA.so.1" + ln -s libAMDXvBA.so.1.0 "${pkgdir}/usr/lib32/libAMDXvBA.so" + ln -s libfglrx_dm.so.1.0 "${pkgdir}/usr/lib32/libfglrx_dm.so.1" + + # useful for 32 bits ? + rm "${pkgdir}"/usr/lib32/lib{amdocl*,OpenCL}.so* + + # licenses + install -Dm644 "${srcdir}/fglrx-install/LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT" +} |