summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1281a215f2076325d96268d191a29c66f8f2df8 (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
33
34
35
36
37
38
39
40
41
# Maintainer: edio <edio@archlinux.us>

_gitname=randrctl
pkgname=$_gitname-git
pkgdesc="Lightweight profile based screen manager for X"
pkgver=1.7.1.r6.895dee6
pkgrel=2
arch=('any')
url="http://github.com/edio/randrctl"
license=('GPL3')
makedepends=('git' 'python-pip')
depends=('python' 'python-argcomplete' 'python-pyyaml' 'python-setuptools' 'xorg-xrandr')
optdepends=('bash-completion')
source=(
  'git+https://github.com/edio/randrctl.git'
  'completion'
)
md5sums=(
  'SKIP' 
  '0557733f74c7724ac0680e6166807b83'
)
provides=("$_gitname")
conflicts=("$_gitname")
install="randrctl.install"

pkgver() {
    cd $_gitname
    printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
  cd $_gitname

  # PKGBUILD handles setup

  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 "$srcdir/completion" "$pkgdir/usr/share/bash-completion/completions/randrctl"
  install -Dm644 "randrctl/misc/99-randrctl.rules" "$pkgdir/usr/lib/rules.d/99-randrctl.rules"
}

# vim:set ts=2 sw=2 et: