summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKohei Suzuki2015-11-23 03:51:31 +0900
committerKohei Suzuki2015-11-23 03:51:31 +0900
commitb5e909bc4dd91b4f5d964ece01bb27c7fe2d0f27 (patch)
tree19c79754fb43b0a3a0927d820f21e941d1c029d4
downloadaur-b5e909bc4dd91b4f5d964ece01bb27c7fe2d0f27.tar.gz
Initial import
-rw-r--r--.SRCINFO22
-rw-r--r--99-pt1_drv.rules1
-rw-r--r--PKGBUILD39
-rw-r--r--dkms.conf7
-rw-r--r--dkms.install19
5 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..de728c2653d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = pt1_drv-dkms-hg
+ pkgdesc = PT1/2 driver sources for DKMS
+ pkgver = r141.c8688d7d6382
+ pkgrel = 1
+ url = http://hg.honeyplanet.jp/pt1/
+ install = dkms.install
+ arch = i686
+ arch = x86_64
+ license = unknown
+ makedepends = mercurial
+ depends = dkms
+ depends = linux-headers
+ provides = pt1_drv-dkms
+ source = pt1_drv-dkms-hg::hg+http://hg.honeyplanet.jp/pt1/
+ source = dkms.conf
+ source = 99-pt1_drv.rules
+ sha1sums = SKIP
+ sha1sums = af3fc15f2b7e9e1fc9a8559546a0ed733f7115c6
+ sha1sums = ad3c58078fbd48b8f97ea24af2b084be29210b47
+
+pkgname = pt1_drv-dkms-hg
+
diff --git a/99-pt1_drv.rules b/99-pt1_drv.rules
new file mode 100644
index 00000000000..1818b40c011
--- /dev/null
+++ b/99-pt1_drv.rules
@@ -0,0 +1 @@
+KERNEL=="pt1video*", GROUP="video", MODE="0660"
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0842b64b6bf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Kohei Suzuki <eagletmt@gmail.com>
+pkgname=pt1_drv-dkms-hg
+_pkgname=pt1_drv
+pkgver=r141.c8688d7d6382
+pkgrel=1
+pkgdesc="PT1/2 driver sources for DKMS"
+arch=('i686' 'x86_64')
+url="http://hg.honeyplanet.jp/pt1/"
+license=('unknown')
+depends=('dkms' 'linux-headers')
+makedepends=('mercurial')
+provides=('pt1_drv-dkms')
+install=dkms.install
+source=("$pkgname"::hg+'http://hg.honeyplanet.jp/pt1/'
+ dkms.conf
+ 99-pt1_drv.rules)
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
+}
+
+build() {
+ cd "$srcdir/$pkgname/driver"
+ make version.h
+}
+
+package() {
+ cd "$srcdir/$pkgname/driver"
+
+ install -dm755 "$pkgdir/usr/src/$_pkgname-$pkgver"
+ install -m644 *.{c,h} Makefile "$srcdir/dkms.conf" "$pkgdir/usr/src/$_pkgname-$pkgver/"
+ install -Dm644 "$srcdir/99-pt1_drv.rules" "$pkgdir/usr/lib/udev/rules.d/99-pt1_drv.rules"
+}
+
+# vim:set ts=2 sw=2 et:
+sha1sums=('SKIP'
+ 'af3fc15f2b7e9e1fc9a8559546a0ed733f7115c6'
+ 'ad3c58078fbd48b8f97ea24af2b084be29210b47')
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..d5a92135106
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,7 @@
+PACKAGE_NAME="pt1_drv"
+PACKAGE_VERSION="1.1.0"
+PACKAGE_RELDATE="2010-01-27"
+MAKE="make KVER=${kernelver}"
+BUILT_MODULE_NAME[0]="pt1_drv"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/video/"
+AUTOINSTALL="YES"
diff --git a/dkms.install b/dkms.install
new file mode 100644
index 00000000000..f8f32f86b78
--- /dev/null
+++ b/dkms.install
@@ -0,0 +1,19 @@
+# https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support
+
+post_install() {
+ dkms install -m pt1_drv -v ${1%%-*}
+}
+
+pre_upgrade() {
+ pre_remove ${2%%-*}
+}
+
+post_upgrade() {
+ post_install ${1%%-*}
+}
+
+pre_remove() {
+ dkms remove -m pt1_drv -v ${1%%-*} --all
+}
+
+# vim:set ts=2 sw=2 et: