nvidia304: fix install.

This commit is contained in:
Juan RP 2013-05-13 16:42:00 +02:00
parent 99c09c2041
commit 51eb1b53f9
1 changed files with 5 additions and 2 deletions

View File

@ -9,6 +9,8 @@ homepage="http://www.nvidia.com"
create_wrksrc=yes
noextract=yes
only_for_archs="i686 x86_64"
if [ "${XBPS_MACHINE}" = "i686" ]; then
_pkg="NVIDIA-Linux-x86-${version}"
distfiles="ftp://download.nvidia.com/XFree86/Linux-x86/${version}/${_pkg}.run"
@ -20,8 +22,9 @@ else
fi
do_extract() {
install -m755 ${_pkg}.run ${wrksrc}
cd ${wrksrc} && ./${_pkg}.run --extract-only
install -m755 ${XBPS_SRCDISTDIR}/${_pkg}.run ${wrksrc}
cd ${wrksrc}
./${_pkg}.run --extract-only
rm -f ${_pkg}.run
}