diff options
author | Dmytro Kostiuchenko | 2016-03-15 20:22:02 +0100 |
---|---|---|
committer | Dmytro Kostiuchenko | 2016-03-15 20:22:02 +0100 |
commit | 09886444cfa9858e55bedc7549253747c6f64b79 (patch) | |
tree | 13c7f29b2ca96c2fb89433beeddd4b795445d39a | |
parent | db4e324bea63a843482ce7c5944de3dfbc90dc05 (diff) | |
download | aur-09886444cfa9858e55bedc7549253747c6f64b79.tar.gz |
New packaging
-rw-r--r-- | PKGBUILD | 20 | ||||
-rw-r--r-- | randrctl.install | 12 |
2 files changed, 24 insertions, 8 deletions
@@ -1,9 +1,9 @@ -# Maintainer: Gabriel Peixoto <gabrielrcp@gmail.com> +# Maintainer: edio <edio@archlinux.us> _gitname=randrctl pkgname=$_gitname-git pkgdesc="Lightweight profile based screen manager for X" -pkgver=r28.7297e20 +pkgver=0 pkgrel=1 arch=('any') url="http://github.com/edio/randrctl" @@ -15,20 +15,24 @@ source=('git+https://github.com/edio/randrctl.git') md5sums=('SKIP') provides=("$_gitname") conflicts=("$_gitname") +install="randrctl.install" pkgver() { cd $_gitname - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + python setup.py --version | tail -n 1 } package() { cd $_gitname + + # PKGBUILD handles setup + rm bin/randrctl-setup + python setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 etc/randrctl/config.ini "$pkgdir/etc/randrctl/config.ini" - install -Dm644 etc/randrctl/profiles/examples/default "$pkgdir/etc/randrctl/profiles/examples/default" - install -Dm644 etc/completion/randrctl.zsh "$pkgdir/usr/share/zsh/site-functions/_randrctl" - install -Dm644 etc/completion/randrctl.bash "$pkgdir/usr/share/bash-completion/completions/randrctl" - install -Dm644 etc/udev/rules.d/99-randrctl.rules "$pkgdir/usr/lib/udev/rules.d/99-randrctl.rules" + install -Dm644 randrctl/misc/config.ini "$pkgdir/etc/randrctl/config.ini" + install -Dm644 randrctl/misc/completion/zsh/_randrctl "$pkgdir/usr/share/zsh/site-functions/_randrctl" + install -Dm644 randrctl/misc/completion/bash/randrctl "$pkgdir/usr/share/bash-completion/completions/randrctl" + install -Dm644 randrctl/misc/udev/99-randrctl.rules "$pkgdir/usr/lib/udev/rules.d/99-randrctl.rules" } # vim:set ts=2 sw=2 et: diff --git a/randrctl.install b/randrctl.install new file mode 100644 index 000000000000..ab4847c1e7b4 --- /dev/null +++ b/randrctl.install @@ -0,0 +1,12 @@ +post_install() { + udevadm control --reload-rules +} + +post_upgrade() { + udevadm control --reload-rules +} + +post_remove() { + udevadm control --reload-rules +} + |