summaryrefslogtreecommitdiff
path: root/multilib-testing/lib32-catalyst-utils
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
committerroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
commit965fe5dd2bc0fae6b53c10d880c15f494dd589ac (patch)
tree910883dffa913262b28fb7a0e3bc41c3325b1dd2 /multilib-testing/lib32-catalyst-utils
parent962d1e81a62d7259ccb686da1a44de2bb28e73a5 (diff)
Tue Oct 9 00:33:25 PDT 2012
Diffstat (limited to 'multilib-testing/lib32-catalyst-utils')
-rw-r--r--multilib-testing/lib32-catalyst-utils/PKGBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/multilib-testing/lib32-catalyst-utils/PKGBUILD b/multilib-testing/lib32-catalyst-utils/PKGBUILD
new file mode 100644
index 000000000..753e5e26c
--- /dev/null
+++ b/multilib-testing/lib32-catalyst-utils/PKGBUILD
@@ -0,0 +1,60 @@
+# $Id: PKGBUILD 77335 2012-10-08 23:34:54Z 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.9
+pkgrel=0.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"
+ https://launchpad.net/ubuntu/quantal/+source/fglrx-installer/2:9.000-0ubuntu1/+files/fglrx-installer_9.000.orig.tar.gz)
+md5sums=('2bb6e8193fdddff9bbd2e3d9f9e8f39b')
+provides=('lib32-libgl')
+conflicts=('lib32-libgl' 'lib32-nvidia-utils')
+
+#build() {
+# cd ${srcdir}
+#
+# sh ./amd-driver-installer*.run --extract fglrx-install
+#}
+
+package() {
+ depends=("catalyst-utils=${pkgver}")
+
+ install -dm755 "${pkgdir}"/usr/bin
+ install -dm755 "${pkgdir}"/usr/lib32/{dri,xorg/modules/{dri,extensions/fglrx}}
+
+ # binaries
+ cd ${srcdir}
+ 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}/xpic/usr/X11R6/lib/modules
+ install -m755 *.so "${pkgdir}/usr/lib32/xorg/modules/"
+ cd ${srcdir}/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}/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}/usr/share/doc/fglrx/LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT"
+}