2012-11-14 14:07:19 +00:00
|
|
|
# Template file for 'nvidia-dkms'.
|
|
|
|
#
|
2013-01-18 09:11:48 +00:00
|
|
|
short_desc="AMD catalyst driver for Linux -- DKMS kernel module"
|
2012-11-14 14:07:19 +00:00
|
|
|
nonfree=yes
|
|
|
|
triggers="dkms"
|
|
|
|
dkms_modules="fglrx ${version}_${revision}"
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
local _fglrx=fglrx-${version}_${revision}
|
|
|
|
|
|
|
|
vmkdir usr/lib/modprobe.d
|
|
|
|
vmkdir usr/lib/modules-load.d
|
|
|
|
vmkdir usr/src/${_fglrx}
|
|
|
|
|
|
|
|
cd ${wrksrc}/fglrx
|
2013-02-07 18:25:19 +00:00
|
|
|
patch -Np0 -i ${FILESDIR}/uapi_linux_version_make.patch
|
2012-11-14 14:07:19 +00:00
|
|
|
cp -r common/lib/modules/fglrx/build_mod/* ${DESTDIR}/usr/src/${_fglrx}
|
|
|
|
|
|
|
|
vinstall arch/${_ARCHDIR}/lib/modules/fglrx/build_mod/libfglrx_ip.a \
|
|
|
|
644 usr/src/${_fglrx}
|
|
|
|
|
|
|
|
vinstall ${FILESDIR}/dkms.conf 644 usr/src/${_fglrx}
|
|
|
|
|
|
|
|
sed -i -e "s/@VERSION@/${version}-${revision}/" \
|
|
|
|
${DESTDIR}/usr/src/${_fglrx}/dkms.conf
|
|
|
|
|
|
|
|
echo "blacklist radeon" > ${DESTDIR}/usr/lib/modprobe.d/catalyst.conf
|
|
|
|
echo "fglrx" > ${DESTDIR}/usr/lib/modules-load.d/catalyst.conf
|
|
|
|
}
|