summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames An2015-01-16 11:09:58 -0500
committerJames An2015-01-16 11:09:58 -0500
commit2762c90515cecfffdb6497fdf11bdeec753d577d (patch)
treee5e035f1bd10ba56c57d44cfe912e5d78911cb91
parentf59f031bcbecbb5e18304a137ed81f753f4ac378 (diff)
downloadaur-2762c90515cecfffdb6497fdf11bdeec753d577d.tar.gz
Added to autorandr-git an install file to refresh udev rules and moved its executables to /usr/bin from its default /usr/local/bin install directory.
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD19
-rw-r--r--autorandr-git.install7
3 files changed, 25 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 297bf5730af..d520fcd40c0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = autorandr-git
pkgdesc = Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr or disper. Formerly autodisper.
- pkgver = r96.8429886
- pkgrel = 1
+ pkgver = r123.664d140
+ pkgrel = 2
url = https://github.com/phillipberndt/autorandr
+ install = autorandr-git.install
arch = i686
arch = x86_64
license = GPL
@@ -14,7 +15,9 @@ pkgbase = autorandr-git
conflicts = autorandr-asch-git
conflicts = autorandr-phillipberndt-git
source = autorandr::git+https://github.com/phillipberndt/autorandr.git
+ source = autorandr-git.install
md5sums = SKIP
+ md5sums = bedb41a350cdf6983872119aef71fed6
pkgname = autorandr-git
diff --git a/PKGBUILD b/PKGBUILD
index e57cb18f2cf..90c6ec8bd1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@
_pkgname=autorandr
pkgname="$_pkgname-git"
-pkgver=r96.8429886
-pkgrel=1
+pkgver=r123.664d140
+pkgrel=2
pkgdesc="Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr or disper. Formerly autodisper."
arch=('i686' 'x86_64')
url="https://github.com/phillipberndt/$_pkgname"
@@ -21,8 +21,15 @@ conflicts=(
'autorandr-asch-git'
'autorandr-phillipberndt-git'
)
-source=("$_pkgname"::"git+https://github.com/phillipberndt/$_pkgname.git")
-md5sums=('SKIP')
+install="$pkgname.install"
+source=(
+ "$_pkgname"::"git+https://github.com/phillipberndt/$_pkgname.git"
+ "$pkgname.install"
+)
+md5sums=(
+ 'SKIP'
+ 'bedb41a350cdf6983872119aef71fed6'
+)
pkgver() {
cd "$_pkgname"
@@ -35,6 +42,6 @@ pkgver() {
package() {
cd "$_pkgname"
- make DESTDIR="$pkgdir/" install
- make DESTDIR="$pkgdir/" hotplug
+ make DESTDIR="$pkgdir/" INSTALL_PATH=/usr/bin install >/dev/null
+ make DESTDIR="$pkgdir/" hotplug >/dev/null
}
diff --git a/autorandr-git.install b/autorandr-git.install
new file mode 100644
index 00000000000..bb8d24a25cc
--- /dev/null
+++ b/autorandr-git.install
@@ -0,0 +1,7 @@
+post_install() {
+ post_upgrade
+}
+
+post_upgrade() {
+ udevadm control --reload-rules
+}