diff options
author | blackhole | 2015-11-12 09:17:31 +0100 |
---|---|---|
committer | blackhole | 2015-11-12 09:17:31 +0100 |
commit | 171ee5d9572d9c74e92154e2d44a3a57f9af6233 (patch) | |
tree | 1c6d364d35fd478524c47d1de12f136f39f58948 | |
download | aur-171ee5d9572d9c74e92154e2d44a3a57f9af6233.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 25 | ||||
-rw-r--r-- | default_screen.conf | 3 | ||||
-rwxr-xr-x | mpv.sh | 4 |
4 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..54024282a68a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = mpv-plugin-xrandr + pkgdesc = Makes mpv automatically invoke the xrandr tool to set the best suitable parameters for the display output + pkgver = r312074b + pkgrel = 1 + url = https://github.com/lvml/mpv-plugin-xrandr + arch = i686 + arch = x86_64 + license = GPL + depends = mpv + depends = xorg-xrandr + depends = bash + source = git+https://github.com/lvml/mpv-plugin-xrandr + source = mpv.sh + source = default_screen.conf + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + +pkgname = mpv-plugin-xrandr + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..92416a10a3f2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: AudioLinux <audiolinux AT fastmail DOT fm> + + +pkgname=mpv-plugin-xrandr +pkgver=r312074b +pkgrel=1 +pkgdesc="Makes mpv automatically invoke the "xrandr" tool to set the best suitable parameters for the display output" +arch=('i686' 'x86_64') +license=('GPL') +url="https://github.com/lvml/mpv-plugin-xrandr" +depends=('mpv' 'xorg-xrandr' 'bash') +source=('git+https://github.com/lvml/mpv-plugin-xrandr' 'mpv.sh' 'default_screen.conf') +md5sums=('SKIP' 'SKIP' 'SKIP') + +pkgver() { + cd "$pkgname" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package () { + install -Dm755 mpv.sh "$pkgdir/usr/bin/mpv.sh" + install -Dm755 "$srcdir/$pkgname/xrandr.lua" "$pkgdir/etc/mpv/xrandr.lua" + install -Dm644 default_screen.conf "$pkgdir/etc/mpv/default_screen.conf" + install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/COPYING" +}
\ No newline at end of file diff --git a/default_screen.conf b/default_screen.conf new file mode 100644 index 000000000000..4dd3970b1dfb --- /dev/null +++ b/default_screen.conf @@ -0,0 +1,3 @@ +OUTPUT=LVDS-0 +MODE=1920x1080 +RATE=50 diff --git a/mpv.sh b/mpv.sh new file mode 100755 index 000000000000..5cbc21eb40ca --- /dev/null +++ b/mpv.sh @@ -0,0 +1,4 @@ +#!/bin/bash +source /etc/mpv/default_screen.conf +mpv $1 --script /etc/mpv/xrandr.lua +xrandr --output $OUTPUT --mode $MODE --rate $RATE
\ No newline at end of file |