From 0cfcc4e93b88ea2b9aeb8897271bf88dc7c320f2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 7 Nov 2024 21:43:24 +0100 Subject: [PATCH] package created using the webbuild interface [release 5.2.20240517git.980fff2-1mamba;Wed Jun 05 2024] --- README.md | 1 + rtl8812au-openhd.spec | 64 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 rtl8812au-openhd.spec diff --git a/README.md b/README.md index cff94cc..5256fc1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # rtl8812au-openhd +Patched rtl88xxau drivers for wifibroadcast. diff --git a/rtl8812au-openhd.spec b/rtl8812au-openhd.spec new file mode 100644 index 0000000..d56c25a --- /dev/null +++ b/rtl8812au-openhd.spec @@ -0,0 +1,64 @@ +%define modname rtl8812au_ohd +Name: rtl8812au-openhd +Version: 5.2.20240517git.980fff2 +Release: 1mamba +Summary: Patched rtl88xxau drivers for wifibroadcast +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/OpenHD/rtl8812au +Source: https://github.com/OpenHD/rtl8812au.git/v5.2.20@980fff2/rtl8812au-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires(post): bc +Requires(post): dkms +Requires(post): kernelheaders + +%description +Patched rtl88xxau drivers for wifibroadcast. + +#% debug_package + +%prep +%setup -q -n rtl8812au-%{version} +sed -i "s|\(PACKAGE_NAME=\).*|\1\"%{modname}\"|" dkms.conf +sed -i "s|\(PACKAGE_VERSION=\).*|\1%{version}|" dkms.conf + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_prefix}/src/%{modname}-%{version} +cp -a * %{buildroot}%{_prefix}/src/%{modname}-%{version} + +%check +%make + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%preun +# erase +if [ $1 -eq 0 ]; then + dkms remove -q -m %{modname} -v %{version} --all +fi +: + +%post +if [ $1 -ge 1 ]; then + dkms add -q -m %{modname} -v %{version} + dkms install -q -m %{modname} -v %{version} --force +fi +: + +%files +%defattr(-,root,root) +%dir %{_prefix}/src/%{modname}-%{version} +%{_prefix}/src/%{modname}-%{version}/* +%doc LICENSE + +%changelog +* Wed Jun 05 2024 Silvan Calarco 5.2.20240517git.980fff2-1mamba +- package created using the webbuild interface