overwrite makefile instead of patching
This commit is contained in:
parent
b3d36d630e
commit
5ce5621e93
12
Makefile
Normal file
12
Makefile
Normal file
@ -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
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -1 +0,0 @@
|
|||||||
xpad-noone-package-adapt.patch
|
|
21
debian/patches/xpad-noone-package-adapt.patch
vendored
21
debian/patches/xpad-noone-package-adapt.patch
vendored
@ -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
|
|
2
main.sh
2
main.sh
@ -6,6 +6,8 @@ add-apt-repository ppa:kubuntu-ppa/backports
|
|||||||
# Clone Upstream
|
# Clone Upstream
|
||||||
git clone https://github.com/medusalix/xpad-noone
|
git clone https://github.com/medusalix/xpad-noone
|
||||||
cp -rvf ./debian ./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
|
cd ./xpad-noone
|
||||||
|
|
||||||
# Get build deps
|
# Get build deps
|
||||||
|
1
modules-load-d-xpad-noone.conf
Normal file
1
modules-load-d-xpad-noone.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
xpad-noone
|
Loading…
Reference in New Issue
Block a user