summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKohei Suzuki2015-11-23 03:46:39 +0900
committerKohei Suzuki2015-11-23 03:46:39 +0900
commit1288892fa84af0485bc63d3c7100dce27f354b59 (patch)
tree8afdf6118e4a5ccee1023e72363d2c276f18ed76
downloadaur-1288892fa84af0485bc63d3c7100dce27f354b59.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rw-r--r--99-pt3_drv.rules1
-rw-r--r--PKGBUILD44
-rw-r--r--dkms.install19
-rw-r--r--remove-make-dkms.patch13
5 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..605d5342cfe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = pt3_drv-dkms-git
+ pkgdesc = PT3 driver sources for DKMS
+ pkgver = r101.3e315b5
+ pkgrel = 1
+ url = https://github.com/m-tsudo/pt3
+ install = dkms.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = dkms
+ depends = linux-headers
+ provides = pt3_drv-dkms
+ source = pt3_drv-dkms-git::git+https://github.com/m-tsudo/pt3
+ source = remove-make-dkms.patch
+ source = 99-pt3_drv.rules
+ sha1sums = SKIP
+ sha1sums = 7632bc7217c4414f202afe681780541eb58149f7
+ sha1sums = 89f86e04814e0a85dc9b1ffda9a440b833237a3b
+
+pkgname = pt3_drv-dkms-git
+
diff --git a/99-pt3_drv.rules b/99-pt3_drv.rules
new file mode 100644
index 00000000000..2118621c155
--- /dev/null
+++ b/99-pt3_drv.rules
@@ -0,0 +1 @@
+KERNEL=="pt3video*", GROUP="video", MODE="0660"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..69c0afc512f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Kohei Suzuki <eagletmt@gmail.com>
+pkgname=pt3_drv-dkms-git
+_pkgname=pt3_drv
+pkgver=r101.3e315b5
+pkgrel=1
+pkgdesc="PT3 driver sources for DKMS"
+arch=('i686' 'x86_64')
+url="https://github.com/m-tsudo/pt3"
+license=('GPL')
+depends=('dkms' 'linux-headers')
+makedepends=('git')
+provides=('pt3_drv-dkms')
+install=dkms.install
+source=("$pkgname"::'git+https://github.com/m-tsudo/pt3'
+ remove-make-dkms.patch
+ 99-pt3_drv.rules)
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ patch -Np1 -i "$srcdir/remove-make-dkms.patch"
+}
+
+build() {
+ :
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+
+ install -dm755 "$pkgdir/usr/src/$_pkgname-$pkgver"
+ install -m644 *.{c,h} Makefile dkms.conf "$pkgdir/usr/src/$_pkgname-$pkgver/"
+ install -Dm644 "$srcdir/99-pt3_drv.rules" "$pkgdir/usr/lib/udev/rules.d/99-pt3_drv.rules"
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
+sha1sums=('SKIP'
+ '7632bc7217c4414f202afe681780541eb58149f7'
+ '89f86e04814e0a85dc9b1ffda9a440b833237a3b')
diff --git a/dkms.install b/dkms.install
new file mode 100644
index 00000000000..94279b83fa8
--- /dev/null
+++ b/dkms.install
@@ -0,0 +1,19 @@
+# https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support
+
+post_install() {
+ dkms install -m pt3_drv -v ${1%%-*}
+}
+
+pre_upgrade() {
+ pre_remove ${2%%-*}
+}
+
+post_upgrade() {
+ post_install ${1%%-*}
+}
+
+pre_remove() {
+ dkms remove -m pt3_drv -v ${1%%-*} --all
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/remove-make-dkms.patch b/remove-make-dkms.patch
new file mode 100644
index 00000000000..0e82ccbdef4
--- /dev/null
+++ b/remove-make-dkms.patch
@@ -0,0 +1,13 @@
+diff --git a/dkms.conf b/dkms.conf
+index 5b904ab..558559f 100644
+--- a/dkms.conf
++++ b/dkms.conf
+@@ -1,7 +1,7 @@
+ PACKAGE_NAME="pt3_drv"
+ PACKAGE_VERSION="0.0.1"
+ PACKAGE_RELDATE="2012-07-07"
+-MAKE="make KVER=${kernelver} dkms"
++MAKE="make KVER=${kernelver}"
+ BUILT_MODULE_NAME[0]="pt3_drv"
+ DEST_MODULE_LOCATION[0]="/kernel/drivers/video/"
+ AUTOINSTALL="YES"