From 5ce5621e93c53a5449a04a470552b83f2db03c37 Mon Sep 17 00:00:00 2001 From: Ward Nakchbandi Date: Sat, 4 Mar 2023 16:33:17 +0300 Subject: [PATCH] overwrite makefile instead of patching --- Makefile | 12 +++++++++++ debian/patches/series | 1 - debian/patches/xpad-noone-package-adapt.patch | 21 ------------------- main.sh | 2 ++ modules-load-d-xpad-noone.conf | 1 + 5 files changed, 15 insertions(+), 22 deletions(-) create mode 100644 Makefile delete mode 100644 debian/patches/series delete mode 100644 debian/patches/xpad-noone-package-adapt.patch create mode 100644 modules-load-d-xpad-noone.conf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1a4c188 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +VERSION=1.0 + +all: + true + +install: + echo "* Copying module into /usr/src..." + install -dm755 $(DESTDIR)/usr/src/xpad-noone + cp -r xpad-noone $(DESTDIR)/usr/src/ + ln -sf /usr/src/xpad-noone $(DESTDIR)/usr/src/xpad-noone-"${VERSION}" + install -d $(DESTDIR)/etc/modules-load.d + cp -r modules-load-d-xpad-noone.conf $(DESTDIR)/etc/modules-load.d/xpad-noone.conf diff --git a/debian/patches/series b/debian/patches/series deleted file mode 100644 index 413004b..0000000 --- a/debian/patches/series +++ /dev/null @@ -1 +0,0 @@ -xpad-noone-package-adapt.patch diff --git a/debian/patches/xpad-noone-package-adapt.patch b/debian/patches/xpad-noone-package-adapt.patch deleted file mode 100644 index 113bafb..0000000 --- a/debian/patches/xpad-noone-package-adapt.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -uraN a/Makefile b/Makefile ---- a/Makefile 1970-01-01 02:00:00.000000000 +0200 -+++ b/Makefile 2023-03-04 16:27:05.690744954 +0300 -@@ -0,0 +1,12 @@ -+VERSION=1.0 -+ -+all: -+ true -+ -+install: -+ echo "* Copying module into /usr/src..." -+ install -dm755 $(DESTDIR)/usr/src/xpad-noone -+ cp -r xpad-noone $(DESTDIR)/usr/src/ -+ ln -sf /usr/src/xpad-noone $(DESTDIR)/usr/src/xpad-noone-"${VERSION}" -+ install -d $(DESTDIR)/etc/modules-load.d -+ cp -r modules-load-d-xpad-noone.conf $(DESTDIR)/etc/modules-load.d/xpad-noone.conf -diff -uraN a/modules-load-d-xpadneo.conf b/modules-load-d-xpadneo.conf ---- a/modules-load-d-xpad-noone.conf 1970-01-01 02:00:00.000000000 +0200 -+++ b/modules-load-d-xpad-noone.conf 2022-09-25 20:44:46.000000000 +0300 -@@ -0,0 +1,1 @@ -+xpad-noone diff --git a/main.sh b/main.sh index 409ee37..a3b499a 100755 --- a/main.sh +++ b/main.sh @@ -6,6 +6,8 @@ add-apt-repository ppa:kubuntu-ppa/backports # Clone Upstream git clone https://github.com/medusalix/xpad-noone cp -rvf ./debian ./xpad-noone +cp -rvf ./modules-load-d-xpad-noone.conf ./xpad-noone +cp -rvf ./Makefile ./xpad-noone cd ./xpad-noone # Get build deps diff --git a/modules-load-d-xpad-noone.conf b/modules-load-d-xpad-noone.conf new file mode 100644 index 0000000..c81ebed --- /dev/null +++ b/modules-load-d-xpad-noone.conf @@ -0,0 +1 @@ +xpad-noone