lib32/lib32-catalyst-utils/PKGBUILD

71 lines
3.3 KiB
Bash
Raw Normal View History

2011-01-16 02:52:42 +08:00
# 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>
_pkgsourcename=catalyst-utils
pkgname=lib32-$_pkgsourcename
2012-12-18 06:01:51 +08:00
pkgver=12.12
pkgrel=2
2012-12-18 06:01:51 +08:00
_amdver=9.01
2011-01-16 02:52:42 +08:00
pkgdesc="AMD/ATI catalyst driver utilities and libraries. (32-bit)"
url="http://www.ati.amd.com"
arch=(x86_64)
license=('custom')
depends=('lib32-libxext' 'lib32-libdrm' "catalyst-utils=${pkgver}")
conflicts=('lib32-libgl' 'lib32-nvidia-utils')
2012-05-07 11:26:16 +08:00
replaces=('lib32-ati-fglrx-utils' 'lib32-fglrx-utils')
2011-01-16 02:52:42 +08:00
provides=('lib32-libgl')
2012-12-18 06:01:51 +08:00
#source=(http://www.ati.com/drivers/linux/amd-driver-installer-${pkgver/./-}-x86.x86_64.run
source=(http://www2.ati.com/drivers/embedded/9.01-121106a-150335C-EDG_Direct.zip
lib32-catalyst.sh)
2012-12-18 06:01:51 +08:00
md5sums=('8682744e49fcd529a7e0c07a167d9df3'
2011-11-26 05:25:33 +08:00
'af7fb8ee4fc96fd54c5b483e33dc71c4')
2011-01-16 02:52:42 +08:00
build() {
# Extract Catalyst driver installer
2012-12-18 06:01:51 +08:00
/bin/sh ./amd-driver-installer-${_amdver}-x86.x86_64.run --extract archive_files
2011-01-16 02:52:42 +08:00
}
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
2012-12-18 06:01:51 +08:00
install -dm755 "${pkgdir}/usr/lib32/fglrx" || return 1 # since 11.4
2011-01-16 02:52:42 +08:00
install -dm755 "${pkgdir}/usr/lib32/xorg/modules/dri" || return 1
install -m755 lib/*.so* "${pkgdir}/usr/lib32/" || return 1
2011-05-02 19:51:20 +08:00
install -m755 X11R6/lib/fglrx/fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/fglrx" || return 1 # since 11.5
2012-12-18 06:01:51 +08:00
ln -sf /usr/lib32/fglrx/fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/fglrx/libGL.so.1.2" # since 11.4
ln -sf /usr/lib32/fglrx/fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/fglrx-libGL.so.1.2" # since 11.4
ln -sf /usr/lib32/fglrx/fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/libGL.so.1.2" # since 11.4
ln -sf /usr/lib32/fglrx/fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/libGL.so.1" # since 11.4
ln -sf /usr/lib32/fglrx/fglrx-libGL.so.1.2 "${pkgdir}/usr/lib32/libGL.so" # since 11.4
install -m755 X11R6/lib/libAMDXvBA.so.1.0 "${pkgdir}/usr/lib32/" || return 1 # since 11.4
install -m755 X11R6/lib/libatiadlxx.so "${pkgdir}/usr/lib32/" || return 1 # since 11.4
install -m755 X11R6/lib/libfglrx_dm.so.1.0 "${pkgdir}/usr/lib32/" || return 1 # since 11.4
install -m755 X11R6/lib/libXvBAW.so.1.0 "${pkgdir}/usr/lib32/" || return 1 # since 11.4
2011-05-02 19:51:20 +08:00
2011-01-16 02:52:42 +08:00
install -m755 X11R6/lib/modules/dri/*.so "${pkgdir}/usr/lib32/xorg/modules/dri/" || return 1
2012-12-18 06:01:51 +08:00
ln -snf /usr/lib32/xorg/modules/dri "${pkgdir}/usr/lib32/dri" || return 1
2011-01-16 02:52:42 +08:00
cd "$pkgdir/usr/lib32/" || return 1
ln -sf libfglrx_dm.so.1.0 libfglrx_dm.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 libatiuki.so.1.0 libatiuki.so.1 || return 1
ln -sf libatiuki.so.1.0 libatiuki.so || return 1
2012-12-18 06:01:51 +08:00
ln -sf libOpenCL.so.1 libOpenCL.so || return 1 # since 11.11
# since 12.8
install -m755 -d "${pkgdir}/etc/OpenCL/vendors"
install -m644 "${srcdir}/archive_files/arch/x86/etc/OpenCL/vendors/amdocl32.icd" "${pkgdir}/etc/OpenCL/vendors/" || return 1
# License
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 "${srcdir}/archive_files/LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
2011-01-16 02:52:42 +08:00
}