summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorXyne2015-06-21 02:45:04 +0000
committerXyne2015-06-21 02:45:04 +0000
commit17f1ac52b097516e7f3191d59632ba73328cecf3 (patch)
treeee96c82250a8f7a511a81b5b6b6f0c22177fa3f6 /PKGBUILD
downloadaur-jme-git.tar.gz
Initial import.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..16f0073718e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Xyne <ca archlinux xyne, backwards>
+_pkgname=jme
+pkgname=jme-git
+pkgver=1329935374
+pkgrel=1
+pkgdesc="JMicron Ethernet Linux driver"
+arch=('i686' 'x86_64')
+url="http://bbs.cooldavid.org/git/?p=jme.git"
+license=('GPL')
+makedepends=('git' 'linux-headers')
+provides=('jme')
+conflicts=('jme')
+install="$pkgname".install
+
+source=('git://bbs.cooldavid.org/jme.git#branch=master' 'kernel-3.10.patch')
+sha512sums=('SKIP'
+ '72c1d51afea066df405a7e0ade6ac3313664538349819ab869be1c1050e3a4cb6fa88f503332b046d58903ae8b51f21cfccdd57cd6b0d38320bb6e1d68bc5cd8')
+
+pkgver() {
+ cd -- "$srcdir/$_pkgname"
+ git log -n1 --pretty=format:%ct
+}
+
+prepare() {
+ cd -- "$srcdir/$_pkgname"
+ git apply "$srcdir/kernel-3.10.patch"
+}
+
+build() {
+ cd -- "$srcdir/$_pkgname"
+ make -j1
+ gzip jme.ko
+}
+
+package() {
+ cd -- "$srcdir/$_pkgname"
+ install -Dm644 jme.ko.gz "$pkgdir"/lib/modules/"$(uname -r)"/updates/jme.ko.gz
+ install -Dm644 jme.h "$pkgdir"/usr/include/jme.h
+}
+
+# vim:set ts=2 sw=2 et: