summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKilobyte222017-06-11 21:45:44 +0200
committerKilobyte222017-06-11 21:48:55 +0200
commit1b2e3a57db68a004ee02e4c7c2cc0350ad7c2cb7 (patch)
treec8cab4679258b2494dd4741998fb496cb05cd046
downloadaur-leds-apu2-dkms.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD33
-rw-r--r--dkms.conf7
-rw-r--r--makefile.patch6
5 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3bc27264492
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = leds-apu2-dkms
+ pkgdesc = Kernel Driver for exposing the APU2/3 LEDs via the sysfs, also usermode tools
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://daduke.org/linux/apu2/
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = dkms
+ source = https://daduke.org/dl/apu2-leds.tgz
+ source = dkms.conf
+ source = makefile.patch
+ sha256sums = 4eb4251681e6ae671294e7c3209c5c9f02a26f4c49c33f7bfe0d94e18713e7aa
+ sha256sums = 19bb519cbd1875deaab264fb7b1d0bf936bec8dfde989ac9ba57e5c438969373
+ sha256sums = f9d52a39ae9e3835ffa091632431bf051566ddd5a695d110274af61c22d7d895
+
+pkgname = leds-apu2-dkms
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..62d30f9218c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+src/
+pkg/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..99eeacf185c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Stephan Henrichs <kilobyte @@ kilobyte22 .. de>
+pkgname=leds-apu2-dkms
+pkgver=1.0
+pkgrel=1
+pkgdesc="Kernel Driver for exposing the APU2/3 LEDs via the sysfs, also usermode tools"
+arch=(i686 x86_64)
+url="https://daduke.org/linux/apu2/"
+license=(GPL2)
+depends=('dkms')
+source=('https://daduke.org/dl/apu2-leds.tgz' 'dkms.conf' 'makefile.patch')
+sha256sums=('4eb4251681e6ae671294e7c3209c5c9f02a26f4c49c33f7bfe0d94e18713e7aa'
+ '19bb519cbd1875deaab264fb7b1d0bf936bec8dfde989ac9ba57e5c438969373'
+ 'f9d52a39ae9e3835ffa091632431bf051566ddd5a695d110274af61c22d7d895')
+
+prepare() {
+ patch apu2/Makefile -i makefile.patch
+}
+
+build() {
+ cd "${srcdir}"/apu2
+ make apu2led
+}
+
+package() {
+
+ install -Dm644 dkms.conf "${pkgdir}"/usr/src/${pkgname}-${pkgver}/dkms.conf
+ install -Dm755 apu2/apu2led "${pkgdir}"/usr/bin/apu2led
+
+ sed -e "s/@PKGNAME@/${pkgname}/" \
+ -e "s/@PKGVER@/${pkgver}/" \
+ -i "${pkgdir}"/usr/src/${pkgname}-${pkgver}/dkms.conf
+ cp -r "${srcdir}"/apu2/* "${pkgdir}"/usr/src/${pkgname}-${pkgver}/
+}
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..75302289a3c
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,7 @@
+PACKAGE_NAME="@PKGNAME@"
+PACKAGE_VERSION="@PKGVER@"
+MAKE[0]="make KVERSION=$kernelver leds-apu2.ko"
+CLEAN="make clean"
+BUILT_MODULE_NAME[0]="leds-apu2"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/misc"
+AUTOINSTALL="yes"
diff --git a/makefile.patch b/makefile.patch
new file mode 100644
index 00000000000..9150dfd4cab
--- /dev/null
+++ b/makefile.patch
@@ -0,0 +1,6 @@
+20c20,22
+< all: $(MODULE)
+---
+> all: $(MODULE) apu2led
+>
+> apu2led: