diff --git a/debian/patches/Change-dkms-version.patch b/debian/patches/Change-dkms-version.patch deleted file mode 100644 index 8b16c39..0000000 --- a/debian/patches/Change-dkms-version.patch +++ /dev/null @@ -1,20 +0,0 @@ -From: Sophie Brun -Date: Fri, 10 Jul 2020 08:49:31 +0200 -Subject: Change dkms version - -Forwarded: not-needed ---- - dkms.conf | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/dkms.conf b/dkms.conf -index 1c14127..1708d4c 100644 ---- a/dkms.conf -+++ b/dkms.conf -@@ -1,5 +1,5 @@ - PACKAGE_NAME="realtek-rtl8188eus" --PACKAGE_VERSION="5.3.9~20200316" -+PACKAGE_VERSION="5.3.9~git20220319.0958f29" - CLEAN="'make' clean" - BUILT_MODULE_NAME[0]=8188eu - PROCS_NUM=`nproc` diff --git a/debian/patches/series b/debian/patches/series index 1470404..6e3040b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1 @@ -Change-dkms-version.patch add-support-kernel-5.17.patch diff --git a/debian/rules b/debian/rules index a19c01b..e1d76e2 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,9 @@ override_dh_fixperms: dh_fixperms find debian/realtek-rtl8188eus-dkms/usr/src -type f -exec chmod -x {} \; +execute_after_dh_install: + sed -i dkms.conf -e 's%^PACKAGE_VERSION=.*%PACKAGE_VERSION="$(DEB_VERSION_UPSTREAM)"%' + # Nothing to configure, build or auto-install (all is done after # installation using dkms) override_dh_auto_configure: