summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD28
-rw-r--r--autorotate3
4 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..23cc0a4c3b1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Thu Jan 28 12:45:22 UTC 2016
+pkgbase = surfacepro3-autorotate
+ pkgdesc = Assists Surface Pro 3 tablets autorotate based on device orentation
+ pkgver = r21.bdd6abe
+ pkgrel = 1
+ url = https://github.com/simonwjackson/surface-pro-3-scripts
+ arch = i686
+ arch = x86_64
+ depends = python2
+ source = git://github.com/simonwjackson/surface-pro-3-scripts.git
+ source = autorotate
+ md5sums = SKIP
+ md5sums = ab0ebbf9c05b851d8072e2c3efa727f7
+
+pkgname = surfacepro3-autorotate
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..ed3bf41b2fc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
+!autorotate
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..100fc6754a2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: FireZ <firez199984@gmail.com>
+
+_pkgname=surface-pro-3-scripts
+pkgname=surfacepro3-autorotate
+pkgver=r21.bdd6abe
+pkgrel=1
+pkgdesc="Assists Surface Pro 3 tablets autorotate based on device orentation"
+arch=('i686' 'x86_64')
+url="https://github.com/simonwjackson/surface-pro-3-scripts"
+depends=('python2')
+source=("git://github.com/simonwjackson/surface-pro-3-scripts.git"
+ "autorotate")
+md5sums=('SKIP'
+ 'ab0ebbf9c05b851d8072e2c3efa727f7')
+
+pkgver() {
+ cd "$_pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+ install -Dm755 autorotate "$pkgdir/usr/bin/autorotate"
+
+ cd $_pkgname
+ install -Dm755 autorotate.py "$pkgdir/usr/share/$pkgname/autorotate.py"
+ install -Dm644 status.txt "$pkgdir/usr/share/$pkgname/status.txt"
+ install -Dm644 touch.txt "$pkgdir/usr/share/$pkgname/touch.txt"
+}
diff --git a/autorotate b/autorotate
new file mode 100644
index 00000000000..11c62677924
--- /dev/null
+++ b/autorotate
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/share/surfacepro3-autorotate/autorotate.py