summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2012-04-22 22:26:22 (GMT)
committerCecil <knoppmyth@gmail.com>2012-04-22 22:26:22 (GMT)
commit95f93a5cd8b9e9d91a38850f652d65e41474628f (patch)
tree46a05353ac1495b1ce94a97d4ebaa769578d5d03
parent3ca705e54de65bc4c8cb852b71a73b0c156a6a5d (diff)
downloadlinhes_pkgbuild-95f93a5cd8b9e9d91a38850f652d65e41474628f.zip
linhes_pkgbuild-95f93a5cd8b9e9d91a38850f652d65e41474628f.tar.gz
linhes_pkgbuild-95f93a5cd8b9e9d91a38850f652d65e41474628f.tar.bz2
sapphire: Bumped to version 3.3.
-rw-r--r--abs/extra/sapphire/PKGBUILD11
-rw-r--r--abs/extra/sapphire/sapphire.patch43
2 files changed, 35 insertions, 19 deletions
diff --git a/abs/extra/sapphire/PKGBUILD b/abs/extra/sapphire/PKGBUILD
index 7877f8f..dd7c0cb 100644
--- a/abs/extra/sapphire/PKGBUILD
+++ b/abs/extra/sapphire/PKGBUILD
@@ -2,15 +2,15 @@
pkgname=sapphire
_kernver=`uname -r`
-pkgver=3.2
-pkgrel=2
+pkgver=3.3
+pkgrel=1
pkgdesc="Kernel module for Sapphire remote"
arch=('i686' 'x86_64')
url="http://rtr.ca/sapphire_remote"
license=('GPL2')
depends=('kernel26')
makedepends=('kernel26-headers')
-options=(!makeflags)
+options=(!makeflags docs)
install=sapphire.install
source=(http://rtr.ca/sapphire_remote/${pkgname}-${pkgver}.tar.gz sapphire.patch)
@@ -28,8 +28,7 @@ package() {
install -m 755 sapphire_keymap.sh ${pkgdir}/usr/bin
install -m 644 README.txt ${pkgdir}/usr/share/doc/sapphire
install -m 644 keymap.default ${pkgdir}/usr/share/doc/sapphire
- install -m 644 sapphire.c ${pkgdir}/usr/share/doc/sapphire
rm -fr ${pkgdir}/lib/modules/$_kernver/modules*
}
-md5sums=('7379b9dd3283871234cbfb0f61516eae'
- 'db733f5dd3697895062027d7a58a6657')
+md5sums=('2f5734d338bb7795f8405689f7d52389'
+ 'b72bd9141297af07546c2da850f82a2c')
diff --git a/abs/extra/sapphire/sapphire.patch b/abs/extra/sapphire/sapphire.patch
index ddd0653..36cf217 100644
--- a/abs/extra/sapphire/sapphire.patch
+++ b/abs/extra/sapphire/sapphire.patch
@@ -1,24 +1,41 @@
-diff -ruaN sapphire-3.2.orig//Makefile sapphire-3.2/Makefile
---- sapphire-3.2.orig//Makefile 2012-04-12 18:00:50.000000000 +0000
-+++ sapphire-3.2/Makefile 2012-04-22 08:42:19.000000000 +0000
-@@ -4,7 +4,7 @@
- #
+diff -ruaN sapphire-3.3.orig/Makefile sapphire-3.3/Makefile
+--- sapphire-3.3.orig/Makefile 2012-04-22 16:19:27.000000000 +0000
++++ sapphire-3.3/Makefile 2012-04-22 22:19:18.000000000 +0000
+@@ -5,7 +5,7 @@
MODNAME=sapphire
+ MODSOURCE=$(MODNAME).c
CONFLICTS=hid_topseed
-BLACKLIST=/etc/modprobe.d/blacklist-$(CONFLICTS).conf
+BLACKLIST=$(DESTDIR)/etc/modprobe.d/blacklist-$(CONFLICTS).conf
+ KEYMAP_SCRIPT=sapphire_keymap.sh
+ EXTRACT_KEYDEFS=extract_keydefs.sh
+ INPUT_H=/usr/include/linux/input.h
+@@ -39,12 +39,12 @@
- ## MODPARMS is not used any more, but we have to nuke old copies to prevent issues:
- MODPARMS=/etc/modprobe.d/$(MODNAME).conf
-@@ -49,8 +49,8 @@
+ modinstall: $(MODNAME).ko
+ $(MAKE) -C $(KDIR)/build M=`pwd` modules_install
+- depmod $(KVER)
+- @if [ "$(KVER)" = "$$(uname -r)" ]; then \
+- rmmod $(MODNAME) 2>/dev/null ;\
+- rmmod $(CONFLICTS) 2>/dev/null ;\
+- modprobe -v $(MODNAME) ;\
+- fi
++# depmod $(KVER)
++# @if [ "$(KVER)" = "$$(uname -r)" ]; then \
++# rmmod $(MODNAME) 2>/dev/null ;\
++# rmmod $(CONFLICTS) 2>/dev/null ;\
++# modprobe -v $(MODNAME) ;\
++# fi
+
+ clean:
+ $(MAKE) -C $(KDIR)/build M=`pwd` clean
+@@ -61,7 +61,7 @@
depmod
- install: $(MODNAME).ko clean_modparms modloader $(BLACKLIST)
-- cp sapphire_keymap.sh /usr/local/bin/
-- chmod a+rx /usr/local/bin/sapphire_keymap.sh
+ install: $(MODNAME).ko clean_modparms modinstall $(BLACKLIST) $(KEYMAP_SCRIPT)
+- install -m 0755 $(KEYMAP_SCRIPT) /usr/local/bin/
- sync
-+# cp sapphire_keymap.sh /usr/local/bin/
-+# chmod a+rx /usr/local/bin/sapphire_keymap.sh
++# install -m 0755 $(KEYMAP_SCRIPT) /usr/local/bin/
+# sync
all: install