summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cde0c6dedbd1ea5e2ab1f13567aeab55bba02173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Hauke Rehfeld <aur.archlinux.org@haukerehfeld.de>
pkgname=xrandr-multihead-bottom-git
pkgver=r2.ee61e56
pkgrel=1
pkgdesc="Align a bunch of screens to the bottom edge left to right via a xrandr call."
arch=('x86_64' 'i686')
depends=('xorg-xrandr')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
url="https://github.com/hrehfeld/xrandr-multihead-bottom"
source=("git+${url}.git")
noextract=()
md5sums=("SKIP")
pkgver() {
	cd "$srcdir/${pkgname%-git}"
	# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	git checkout master
}

package() {
    install -Dm755 "$srcdir/${pkgname%-git}/xrandr-multihead-bottom" "$pkgdir/usr/bin/xrandr-multihead-bottom"
}