Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
patch for autorandr git AUR build
diff --git a/PKGBUILD b/PKGBUILD
index f12373f..76ea984 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
_pkgname=autorandr
pkgname=autorandr-git
-pkgver=r210.582290b
+pkgver=r234.dcd4b26
pkgrel=1
pkgdesc='Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr. Formerly autodisper.
No disper support.'
arch=('any')
@@ -35,7 +35,7 @@ source=(
)
md5sums=('SKIP'
'bedb41a350cdf6983872119aef71fed6'
- '04ccd2e108878ee07fbb3282a3f7f75f')
+ '424a24ed325faaf6ff419215a07d39b5')
pkgver() {
cd "$_pkgname"
diff --git a/systemd-unit-dir.patch b/systemd-unit-dir.patch
index bc51856..3d54b78 100644
--- a/systemd-unit-dir.patch
+++ b/systemd-unit-dir.patch
@@ -1,17 +1,13 @@
diff --git a/Makefile b/Makefile
-index 42ee710..4803d8d 100644
+index 142a08c..a0100cb 100644
--- a/Makefile
+++ b/Makefile
-@@ -51,10 +51,10 @@ DEFAULT_TARGETS+=systemd
- endif
+@@ -61,7 +61,7 @@ uninstall_pmutils:
+ rm -f ${DESTDIR}/${PM_UTILS_DIR}/40autorandr
- install_systemd: install_pmutils
-- install -D -m 644 contrib/systemd/autorandr-resume.service ${DESTDIR}/etc/systemd/system/autorandr-resume.servi
ce
-+ install -D -m 644 contrib/systemd/autorandr-resume.service ${DESTDIR}$(shell pkg-config systemd --variable=syst
emdsystemunitdir)/autorandr-resume.service
-
- uninstall_systemd: uninstall_pmutils
-- rm -f ${DESTDIR}/etc/systemd/system/autorandr-resume.service
-+ rm -f ${DESTDIR}$(shell pkg-config systemd --variable=systemdsystemunitdir)/autorandr-resume.service
-
- # Rules for udev
- HAVE_UDEV=$(shell [ -d /etc/udev/rules.d/ ] && echo "y")
+ # Rules for systemd
+-SYSTEMD_UNIT_DIR=/etc/systemd/system/
++SYSTEMD_UNIT_DIR=$(shell pkg-config systemd --variable=systemdsystemunitdir)/
+ HAVE_SYSTEMD=$(shell grep -q systemd /proc/1/comm && echo "y")
+ ifeq ($(HAVE_SYSTEMD),y)
+ DEFAULT_TARGETS+=systemd
@blueyed

This comment has been minimized.

Copy link

blueyed commented Oct 14, 2016

@languitar
Thanks!
Looks like this should be included upstream?!
I will submit a PR there.

@blueyed

This comment has been minimized.

Copy link

blueyed commented Oct 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.