File xnohands-makefile-destdir-support.patch of Package xnohands
Index: xnohands/Makefile
===================================================================
--- xnohands.orig/Makefile
+++ xnohands/Makefile
@@ -4,11 +4,11 @@ xnohands: xnohands.c
gcc xnohands.c -lX11 -lXi -o xnohands
install:
- /bin/cp xnohands /usr/local/bin/
- chmod 755 /usr/local/bin/xnohands
- /bin/cp xnohands.desktop /etc/xdg/autostart/
- chmod 644 /etc/xdg/autostart/xnohands.desktop
+ /bin/cp xnohands ${DESTDIR}/usr/local/bin/
+ chmod 755 ${DESTDIR}/usr/local/bin/xnohands
+ /bin/cp xnohands.desktop ${DESTDIR}/etc/xdg/autostart/
+ chmod 644 ${DESTDIR}/etc/xdg/autostart/xnohands.desktop
echo "**** Autostart installed in /etc/xdg/autostart/xnohands.desktop." \
"If manual device selection is needed, edit the line 'Exec=...' of that file." \
"To disable autostart, remove /etc/xdg/autostart/xnohands.desktop."
-
\ No newline at end of file
+