summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorgrimi2015-06-08 18:47:15 +0200
committergrimi2015-06-08 18:47:15 +0200
commit2e3f9cd8a70b190355f6c1fb1f664ad405127362 (patch)
tree7d335c0ee7f161ffa85f9485e1706d27fcf08101 /PKGBUILD
downloadaur-omnibook-git.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
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
+}
+
+