blob: 2c0683df7c501fe980e06428e4eb0699a3580860 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $Id: PKGBUILD 76980 2012-10-02 21:28:25Z lcarlier $
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
# Contributor: Vi0L0, wonder, Eduardo "kensai" Romero
# Contributor: aidanlinz, Rip-Rip, OvsInc, Sebastian Siebert
pkgname=catalyst-lts-dkms
pkgver=12.8
pkgrel=0.1
pkgdesc="AMD proprietary gpu kernel driver"
arch=('i686' 'x86_64')
url="http://www.amd.com"
license=('custom')
depends=('linux-lts' 'linux-lts-headers' 'dkms')
source=(http://www2.ati.com/drivers/linux/amd-driver-installer-${pkgver/./-}-x86.x86_64.zip
dkms.conf)
md5sums=('41c5478322b13be6909eeb46412a3aa0'
'98d42443e84e91674ba79f0e6c38c572')
install=catalyst.install
package() {
depends=(${depends[@]} "catalyst-utils=${pkgver}")
cd ${srcdir}
if [ "${CARCH}" = "x86_64" ]; then
_archdir=x86_64
else
_archdir=x86
fi
sh ./amd-driver-installer*.run --extract fglrx-install
cd fglrx-install
install -dm755 "${pkgdir}/usr/lib/modprobe.d"
install -dm755 "${pkgdir}/usr/src/fglrx-lts-${pkgver}-${pkgrel}"
cp -r common/lib/modules/fglrx/build_mod/* "${pkgdir}/usr/src/fglrx-lts-${pkgver}-${pkgrel}/"
cp "arch/${_archdir}"/lib/modules/fglrx/build_mod/libfglrx_ip.a "${pkgdir}/usr/src/fglrx-lts-${pkgver}-${pkgrel}/"
cp ${srcdir}/dkms.conf "${pkgdir}/usr/src/fglrx-lts-${pkgver}-${pkgrel}/"
sed -i -e "s/@VERSION@/${pkgver}-${pkgrel}/" "${pkgdir}/usr/src/fglrx-lts-${pkgver}-${pkgrel}/dkms.conf"
echo "blacklist radeon" >> "${pkgdir}/usr/lib/modprobe.d/catalyst-lts.conf"
# license
install -Dm644 "${srcdir}/fglrx-install/LICENSE.TXT" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.TXT"
}
|