diff options
author | Kilobyte22 | 2017-06-11 21:45:44 +0200 |
---|---|---|
committer | Kilobyte22 | 2017-06-11 21:48:55 +0200 |
commit | 1b2e3a57db68a004ee02e4c7c2cc0350ad7c2cb7 (patch) | |
tree | c8cab4679258b2494dd4741998fb496cb05cd046 | |
download | aur-1b2e3a57db68a004ee02e4c7c2cc0350ad7c2cb7.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | dkms.conf | 7 | ||||
-rw-r--r-- | makefile.patch | 6 |
5 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3bc272644920 --- /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 000000000000..62d30f9218cb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +src/ +pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..99eeacf185cb --- /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 000000000000..75302289a3ce --- /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 000000000000..9150dfd4cab3 --- /dev/null +++ b/makefile.patch @@ -0,0 +1,6 @@ +20c20,22 +< all: $(MODULE) +--- +> all: $(MODULE) apu2led +> +> apu2led: |