nvidia-driver-555/nvidia-graphics-drivers-555/debian/rules

40 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2024-07-24 03:30:09 +02:00
#! /usr/bin/make -f
## See debhelper(7) (uncomment to enable).
## Output every command that modifies files on the build system.
export DH_VERBOSE = 1
2024-07-26 21:39:52 +02:00
export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
2024-07-24 03:30:09 +02:00
override_dh_prep:
# amd64 build prep
ifeq (amd64,$(DEB_HOST_ARCH))
# Extract nvidia files from run archive
./nvidia-installer.run --extract-only
mkdir -p debian/tmp
# Copy installer contents into debian temp dir
cp -rf ./NVIDIA-Linux-*/* debian/tmp
# Delete 32 libs on amd64 builds
rm -rf debian/tmp/32
# Extract all manpages
gunzip debian/tmp/*.1.gz -k
endif
# i386 (x86) build
ifeq (i386,$(DEB_HOST_ARCH))
# Extract nvidia files from run archive
./nvidia-installer.run --extract-only
mkdir -p debian/tmp
# Copy installer contents into debian temp dir
cp -rf ./NVIDIA-Linux-*/* debian/tmp
# Replace libs with 32 bit
rm -rf debian/tmp/*.so*
cp -rf ./NVIDIA-Linux-*/32/* debian/tmp
rm -rf debian/tmp/32
endif
override_dh_shlibdeps:
dh_shlibdeps -l/usr/lib/$(DEB_HOST_MULTIARCH)/nvidia/current/:/usr/lib/nvidia/current/
%:
dh $@