diff options
author | yeaseb | 2022-04-07 14:57:40 -0400 |
---|---|---|
committer | yeaseb | 2022-04-07 14:57:40 -0400 |
commit | 8fe0be269088fe994399e6d48101d87d67218853 (patch) | |
tree | 78713d44d2a6d7c0bb39f6d7911d25a620e048f8 | |
download | aur-8fe0be269088fe994399e6d48101d87d67218853.tar.gz |
First build of the WMO1.1a overclock module, 045e:0040 only
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rw-r--r-- | dkms.conf | 7 |
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..de9d72bc5853 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = wmo-oc-dkms + pkgdesc = Kernel module for overclocking the MS Wheel Mouse Optical (MLT04). + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/YeaSeb/WMO1.1a-oc-kmod + arch = any + license = GPL2 + depends = dkms + source = https://github.com/YeaSeb/wmo-oc-kmod/archive/refs/tags/1.0.zip + source = dkms.conf + md5sums = 4992b4f8828a951ea9a1b78931d245c7 + md5sums = c0214b179a1d286fd59c82117109399e + +pkgname = wmo-oc-dkms diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6c625ca9be0a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Hannes Mann <hannesmann2000@gmail.com> +# Contributor: Hannes Mann <hannesmann2000@gmail.com> + +pkgname=wmo-oc-dkms +pkgver=1.0 +pkgrel=1 +pkgdesc="Kernel module for overclocking the MS Wheel Mouse Optical (MLT04)." +arch=('any') +url="https://github.com/YeaSeb/WMO1.1a-oc-kmod" +license=('GPL2') +depends=('dkms') +# TODO: release a zip once no conflict is in sight +source=('https://github.com/YeaSeb/wmo-oc-kmod/archive/refs/tags/1.0.zip' + 'dkms.conf') +md5sums=('4992b4f8828a951ea9a1b78931d245c7' + 'c0214b179a1d286fd59c82117109399e') + +prepare() { + echo "wmo_oc" > wmo-oc.conf +} + +package() { + # Copy dkms.conf + install -Dm644 "${srcdir}"/dkms.conf "${pkgdir}"/usr/src/${pkgname}-${pkgver}/dkms.conf + + # Load module on boot + install -Dm644 "${srcdir}"/wmo-oc.conf "${pkgdir}"/usr/lib/modules-load.d/wmo-oc.conf + + # Set name and version + sed -e "s/@PKGVER@/${pkgver}/" \ + -i "${pkgdir}"/usr/src/${pkgname}-${pkgver}/dkms.conf + + cp -r wmo-oc-kmod-${pkgver}/* "${pkgdir}"/usr/src/${pkgname}-${pkgver}/ +} diff --git a/dkms.conf b/dkms.conf new file mode 100644 index 000000000000..2ea0dd0a866c --- /dev/null +++ b/dkms.conf @@ -0,0 +1,7 @@ +PACKAGE_NAME="wmo_oc" +PACKAGE_VERSION="@PKGVER@" +MAKE[0]="make KERNEL_SOURCE_DIR=$kernel_source_dir" +CLEAN="make KERNEL_SOURCE_DIR=$kernel_source_dir clean" +BUILT_MODULE_NAME[0]="wmo_oc" +DEST_MODULE_LOCATION[0]="/extramodules" +AUTOINSTALL="yes" |