summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Shark2017-09-15 15:57:14 +0300
committerAndrew Shark2017-09-15 15:57:14 +0300
commitf52d898244cde6aefe544d1d8fb052305054ee8d (patch)
treea7c5506b57991518a6a6668c633cfff0daa189dd
downloadaur-dl-switch.tar.gz
version 1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD25
-rw-r--r--dl-switch.install12
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b8d40a92f32
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = dl-switch
+ pkgdesc = Easy way to switch between displaylink and optimus
+ pkgver = 1
+ pkgrel = 1
+ url = https://github.com/Ashark/DisplayLink-switch
+ install = dl-switch.install
+ arch = any
+ license = GPL3
+ source = https://raw.githubusercontent.com/Ashark/DisplayLink-switch/master/displaylink-workaround1
+ source = https://raw.githubusercontent.com/Ashark/DisplayLink-switch/master/displaylink.target
+ source = https://raw.githubusercontent.com/Ashark/DisplayLink-switch/master/dl-switch.service
+ sha256sums = 2d8761e2abf30f06080dec0f060817c5204b528b95137d3d19697640977097ec
+ sha256sums = 7822a30c9589922fa36a876bf4d9ccdd2fda10210f498823f497e85f5f41ec6f
+ sha256sums = 775d57eea54826f523c1458575c314c60feb550d60a62fd1f7b772c561cf160a
+
+pkgname = dl-switch
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1816ca372fb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Andew Shark ashark AatT linuxcomp.ru
+
+pkgname='dl-switch'
+pkgver='1'
+pkgrel='1'
+pkgdesc='Easy way to switch between displaylink and optimus'
+arch=('any')
+url='https://github.com/Ashark/DisplayLink-switch'
+license=('GPL3')
+depends=()
+source=("https://raw.githubusercontent.com/Ashark/DisplayLink-switch/master/displaylink-workaround1"
+ "https://raw.githubusercontent.com/Ashark/DisplayLink-switch/master/displaylink.target"
+ "https://raw.githubusercontent.com/Ashark/DisplayLink-switch/master/dl-switch.service")
+sha256sums=('2d8761e2abf30f06080dec0f060817c5204b528b95137d3d19697640977097ec'
+ '7822a30c9589922fa36a876bf4d9ccdd2fda10210f498823f497e85f5f41ec6f'
+ '775d57eea54826f523c1458575c314c60feb550d60a62fd1f7b772c561cf160a')
+
+package() {
+ cd "${srcdir}"
+ install -Dm644 "displaylink-workaround1" "${pkgdir}/usr/share/X11/xorg.conf.d/displaylink-workaround1"
+ install -Dm644 "displaylink.target" "${pkgdir}/usr/lib/systemd/system/displaylink.target"
+ install -Dm644 "dl-switch.service" "${pkgdir}/usr/lib/systemd/system/dl-switch.service"
+}
+
+install=dl-switch.install
diff --git a/dl-switch.install b/dl-switch.install
new file mode 100644
index 00000000000..057b433be78
--- /dev/null
+++ b/dl-switch.install
@@ -0,0 +1,12 @@
+post_install() {
+ echo 'You need manually edit your bootloader boot entry'
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ rm /usr/share/X11/xorg.conf.d/20-displaylink.conf
+ post_install
+}