summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD42
-rw-r--r--omnibook-git.install19
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..50c3faa6c22
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = omnibook-git
+ pkgdesc = Kernel module for HP OmniBook,Pavilion,Toshiba and Compal ACL00 laptops
+ pkgver = 20150227
+ pkgrel = 1
+ url = http://omnibook.sourceforge.net
+ install = omnibook-git.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = linux-headers
+ depends = linux
+ provides = omnibook
+ conflicts = omnibook
+ source = omnibook-git::git://devoid-pointer.net/omnibook.git
+ md5sums = SKIP
+
+pkgname = omnibook-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3e19adda457
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Contributor: grimi <grimi at poczta dot fm>
+
+pkgname=omnibook-git
+pkgver=20150227
+pkgrel=1
+pkgdesc="Kernel module for HP OmniBook,Pavilion,Toshiba and Compal ACL00 laptops"
+arch=('i686' 'x86_64')
+url="http://omnibook.sourceforge.net"
+license=('GPL')
+depends=('linux')
+makedepends=('git' 'linux-headers')
+conflicts=('omnibook')
+provides=('omnibook')
+source=("$pkgname::git://devoid-pointer.net/omnibook.git")
+md5sums=('SKIP')
+install=$pkgname.install
+
+
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git log -1 --format="%cd" --date="short"|sed 's|-||g'
+}
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ true
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ make
+ gzip omnibook.ko
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -Dm644 omnibook.ko.gz \
+ "$pkgdir"/usr/lib/modules/extramodules-$(uname -r|sed 's/\(.*\)\..*-.*-/\1-/')/omnibook.ko.gz
+}
+
+
diff --git a/omnibook-git.install b/omnibook-git.install
new file mode 100644
index 00000000000..d4589e62772
--- /dev/null
+++ b/omnibook-git.install
@@ -0,0 +1,19 @@
+post_install()
+{
+ depmod -ae -v $(uname -r) > /dev/null 2>&1
+ modprobe omnibook &>/dev/null
+}
+
+post_upgrade()
+{
+ depmod -ae -v $(uname -r) > /dev/null 2>&1
+ rmmod omnibook &>/dev/null
+ modprobe omnibook &>/dev/null
+}
+
+post_remove()
+{
+ rmmod omnibook &>/dev/null
+ depmod -ae -v $(uname -r) > /dev/null 2>&1
+}
+