summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorpadfoot2015-06-08 21:07:58 +1000
committerpadfoot2015-06-08 21:07:58 +1000
commit93b3b09d7a878319245458597bbe1414d2d08ac9 (patch)
tree37ce1834aca4141be02c048a8b958d23e9417563
downloadaur-93b3b09d7a878319245458597bbe1414d2d08ac9.tar.gz
Version 0.88-2 initial commit
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD43
-rw-r--r--nvidiabl-module.c.patch12
-rw-r--r--nvidiabl.install17
4 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c46f7eca68b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = nvidiabl
+ pkgdesc = Backlight driver for NVidia graphics adapters
+ pkgver = 0.88
+ pkgrel = 2
+ url = https://github.com/guillaumezin/nvidiabl
+ install = nvidiabl.install
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = linux-headers
+ makedepends = unzip
+ optdepends = nvidiablctl: adjust backlight easily
+ conflicts = nvidia-bl
+ source = https://github.com/guillaumezin/nvidiabl/archive/master.zip
+ source = nvidiabl-module.c.patch
+ md5sums = 5fdda33fedcb78320c1581e84b395d39
+ md5sums = 20fb3f129307b3c7289610c98b94520e
+
+pkgname = nvidiabl
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1a4586de193
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Padfoot <padfoot at exemail dot com dot au>
+# Contributor: Mr_Men <tetcheve at gmail dot com>
+# Contributor: Hasan Gormus aka hsngrms <hsngrms at yandex dot com>
+# Contributor: uwinkelvos <uwinkelvos at gmx dot de>
+
+pkgname=nvidiabl
+pkgver=0.88
+pkgrel=2
+pkgdesc="Backlight driver for NVidia graphics adapters"
+
+arch=('x86_64'
+ 'i686')
+url="https://github.com/guillaumezin/nvidiabl"
+license=('GPL')
+
+makedepends=('linux-headers'
+ 'unzip')
+optdepends=('nvidiablctl: adjust backlight easily')
+conflicts=(nvidia-bl)
+
+install=nvidiabl.install
+source=(https://github.com/guillaumezin/nvidiabl/archive/master.zip
+ nvidiabl-module.c.patch)
+md5sums=('5fdda33fedcb78320c1581e84b395d39'
+ '20fb3f129307b3c7289610c98b94520e')
+
+prepare() {
+ cd "$srcdir/nvidiabl-master/"
+ patch -p1 -i $srcdir/nvidiabl-module.c.patch
+}
+
+build() {
+ cd "$srcdir/nvidiabl-master/"
+ make
+}
+
+package() {
+ cd "$srcdir/nvidiabl-master/"
+ _extramodules="extramodules-$(uname -r | cut -f-2 -d'.')-$(uname -r|sed -e 's/.*-//g')"
+ _MODPATH="${pkgdir}/usr/lib/modules/${_extramodules}/"
+ install -d $_MODPATH
+ install -m 644 -c nvidiabl.ko _$MODPATH
+}
diff --git a/nvidiabl-module.c.patch b/nvidiabl-module.c.patch
new file mode 100644
index 00000000000..c417c1d39d3
--- /dev/null
+++ b/nvidiabl-module.c.patch
@@ -0,0 +1,12 @@
+diff -aur nvidiabl-master.source/nvidiabl-module.c nvidiabl-master.patch/nvidiabl-module.c
+--- nvidiabl-master.source/nvidiabl-module.c 2014-04-08 07:16:19.000000000 +1000
++++ nvidiabl-master.patch/nvidiabl-module.c 2015-05-22 18:13:50.407373072 +1000
+@@ -214,7 +214,7 @@
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
+
+ for (iii = 0 ; iii < sizeof(backlight_type_ids) ; iii++) {
+- if (strnicmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
++ if (strncasecmp(bl_type, backlight_type_ids[iii].id, sizeof(bl_type)) == 0) {
+ props.type = backlight_type_ids[iii].type;
+ printk(KERN_INFO "nvidiabl: backlight type is %s\n", backlight_type_ids[iii].id);
+ }
diff --git a/nvidiabl.install b/nvidiabl.install
new file mode 100644
index 00000000000..945671481ce
--- /dev/null
+++ b/nvidiabl.install
@@ -0,0 +1,17 @@
+post_install() {
+ echo "Updating module dependencies. Please wait ..."
+ depmod $(uname -r)
+ echo ""
+}
+
+post_upgrade() {
+ echo "Updating module dependencies. Please wait ..."
+ depmod $(uname -r)
+ echo ""
+}
+
+post_remove() {
+ echo "Updating module dependencies. Please wait ..."
+ depmod $(uname -r)
+ echo ""
+}