archrelease: copy trunk to community-any
[ArchLinux/community.git] / autorandr / repos / community-any / PKGBUILD
blob98b8f2518f7982e3cbe1d951ba77b367341d0b74
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=autorandr
4 pkgver=1.13.3
5 pkgrel=1
6 pkgdesc="Auto-detect connected display hardware and load appropiate X11 setup using xrandr"
7 arch=(any)
8 url="https://github.com/phillipberndt/autorandr"
9 license=(GPL3)
10 depends=(python-packaging xorg-xdpyinfo xorg-xrandr)
11 makedepends=(bash-completion desktop-file-utils systemd)
12 optdepends=(
13   'bash-completion: auto-completion for autorandr in Bash'
14   'zsh-completions: auto-completion for autorandr in ZSH'
16 source=($pkgname-$pkgver.tar.gz::https://github.com/phillipberndt/$pkgname/archive/$pkgver.tar.gz)
17 sha512sums=('6c3f99da52a029a8f1717020ebafbd7afb58d97651776a6620f47e299584704ab65c37be5e9497cca3c53d6268ebde11481f32967ec289adf606a73e587e874f')
18 b2sums=('fb53316af4d3fa399f278be874e95d06cbd188bebf1e22793ca30ad4f9a8817674390c7d02d501f4a35a0a6f23b16202e97f2a6559727e67e908d21121de8a56')
20 package() {
21   make DESTDIR="$pkgdir" PREFIX=/usr install -C $pkgname-$pkgver
22   # zsh completion
23   install -vDm 644 $pkgname-$pkgver/contrib/zsh_completion/_$pkgname -t "$pkgdir/usr/share/zsh/site-functions/"
24   # docs
25   install -vDm 644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/"