summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Nagy2015-06-08 19:45:55 +0200
committerDaniel Nagy2015-06-08 19:45:55 +0200
commitac60145e408964c4347ad7ea78517454fb86d46f (patch)
tree1f8cd9ffbefe5a0835203c5d278697262ecbfd60
downloadaur-ac60145e408964c4347ad7ea78517454fb86d46f.tar.gz
import to aur4
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD30
-rw-r--r--dkms.conf6
-rw-r--r--kdbus-git.install17
4 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..21f1dcdbf95
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = kdbus-git
+ pkgdesc = kdbus kernel module
+ pkgver = 2131.db51839
+ pkgrel = 2
+ url = https://code.google.com/p/d-bus/
+ install = kdbus-git.install
+ arch = i686
+ arch = x86_64
+ license = LGPL2.1
+ depends = dkms
+ provides = kdbus
+ conflicts = kdbus
+ options = !strip
+ source = git+https://code.google.com/p/d-bus/
+ source = dkms.conf
+ md5sums = SKIP
+ md5sums = a36446ca25771bfd800dc03aaddef968
+
+pkgname = kdbus-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..04a1f8b8ad9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Daniel Nagy <danielnagy at gmx de>
+
+pkgname=kdbus-git
+_pkgname=kdbus
+pkgver=2131.db51839
+pkgrel=2
+pkgdesc="kdbus kernel module"
+arch=('i686' 'x86_64')
+url="https://code.google.com/p/d-bus/"
+depends=( 'dkms' )
+provides=("kdbus")
+conflicts=("kdbus")
+license=('LGPL2.1')
+install="kdbus-git.install"
+options=(!strip)
+source=( "git+https://code.google.com/p/d-bus/" "dkms.conf" )
+md5sums=('SKIP' 'a36446ca25771bfd800dc03aaddef968')
+
+pkgver() {
+ cd "$srcdir/d-bus"
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+package() {
+ cd "$srcdir/d-bus"
+ rm -fr test
+ install -Dm 644 "${srcdir}/dkms.conf" "${pkgdir}/usr/src/${_pkgname}-$pkgver/dkms.conf"
+ cp -r * "${pkgdir}/usr/src/${_pkgname}-$pkgver"/
+ sed -i "s|@VERSION@|${pkgver}|g" "${pkgdir}/usr/src/${_pkgname}-$pkgver/dkms.conf"
+}
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..06cbba252a1
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,6 @@
+PACKAGE_NAME="kdbus"
+PACKAGE_VERSION="@VERSION@"
+BUILT_MODULE_NAME[0]="kdbus"
+DEST_MODULE_LOCATION[0]="/kernel/misc"
+CLEAN="make clean"
+AUTOINSTALL="yes"
diff --git a/kdbus-git.install b/kdbus-git.install
new file mode 100644
index 00000000000..7e6b85a5959
--- /dev/null
+++ b/kdbus-git.install
@@ -0,0 +1,17 @@
+post_install() {
+ dkms install -m kdbus/${1%-*}
+}
+
+pre_upgrade() {
+ dkms remove -m kdbus/${2%-*} --all
+}
+
+post_upgrade() {
+ dkms install -m kdbus/${1%-*}
+}
+
+pre_remove() {
+ dkms remove -m kdbus/${1%-*} --all
+}
+
+