nvidia-stable: renamed to nvidia340 and improved description.

This commit is contained in:
Juan RP 2016-02-07 11:38:31 +01:00
parent b20ab6a3f7
commit 3197deb179
11 changed files with 11 additions and 12 deletions

View File

@ -1 +0,0 @@
nvidia-stable

View File

@ -1 +0,0 @@
nvidia-stable

View File

@ -1 +0,0 @@
nvidia-stable

1
srcpkgs/nvidia340-dkms Symbolic link
View File

@ -0,0 +1 @@
nvidia340

1
srcpkgs/nvidia340-libs Symbolic link
View File

@ -0,0 +1 @@
nvidia340

1
srcpkgs/nvidia340-opencl Symbolic link
View File

@ -0,0 +1 @@
nvidia340

View File

@ -1,9 +1,8 @@
# Template file for 'nvidia'
_desc="NVIDIA drivers for linux (long-lived series)"
_desc="NVIDIA drivers (GeForce 8, 9, 9M, 100, 100M, 200, 300 series)"
pkgname=nvidia-stable
reverts="352.79_1"
pkgname=nvidia340
version=340.96
revision=1
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -18,7 +17,7 @@ depends="${pkgname}-dkms-${version}_${revision} pkg-config"
conflicts="catalyst>=0 xserver-abi-video>21_1"
provides="nvidia-${version}_${revision}"
replaces="nvidia>=0"
replaces="nvidia>=0 nvidia-stable>=0"
subpackages="${pkgname}-dkms ${pkgname}-opencl ${pkgname}-libs"
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
@ -175,13 +174,13 @@ do_install() {
echo "omit_dracutmodules+=\" drm \"" > ${DESTDIR}/usr/lib/dracut/dracut.conf.d/99-nvidia.conf
}
nvidia-stable-dkms_package() {
nvidia340-dkms_package() {
short_desc="${_desc} - DKMS kernel module"
triggers="dkms"
dkms_modules="nvidia ${version}"
depends="dkms"
provides="nvidia-dkms-${version}_${revision}"
replaces="nvidia-dkms>=0"
replaces="nvidia-dkms>=0 nvidia-stable-dkms>=0"
pkg_install() {
vmove usr/src
vmove usr/lib/modules-load.d
@ -189,10 +188,10 @@ nvidia-stable-dkms_package() {
vmove usr/lib/dracut
}
}
nvidia-stable-opencl_package() {
nvidia340-opencl_package() {
short_desc="${_desc} - OpenCL implementation"
provides="nvidia-opencl-${version}_${revision}"
replaces="nvidia-opencl>=0"
replaces="nvidia-opencl>=0 nvidia-stable-opencl>=0"
depends="libOpenCL"
pkg_install() {
vmove "usr/lib/libnvidia-compiler*"
@ -200,7 +199,7 @@ nvidia-stable-opencl_package() {
vmove etc/OpenCL
}
}
nvidia-stable-libs_package() {
nvidia340-libs_package() {
short_desc="${_desc} - libraries"
provides="libGL-${version}_${revision}"
replaces="libGL>=0"