diff options
author | James An | 2014-12-29 22:10:03 -0500 |
---|---|---|
committer | James An | 2014-12-29 22:10:03 -0500 |
commit | f59f031bcbecbb5e18304a137ed81f753f4ac378 (patch) | |
tree | 30354244b620a4564d5d11f8dc9c6865e588513c | |
parent | 2493fc43c6bba4c038c1e6fd93a86b75c799b5fb (diff) | |
download | aur-f59f031bcbecbb5e18304a137ed81f753f4ac378.tar.gz |
Updated autorandr-git PKGBUILD to current packaging guidelines and current upstream repo.
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 63 |
2 files changed, 50 insertions, 33 deletions
@@ -1,12 +1,20 @@ pkgbase = autorandr-git - pkgdesc = Auto-detect connected display hardware and load appropriate X11 setup using xrandr or disper. Formerly auto-disper. - pkgver = 20120301 + pkgdesc = Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr or disper. Formerly autodisper. + pkgver = r96.8429886 pkgrel = 1 - url = http://github.com/wertarbyte/autorandr - arch = any - license = None + url = https://github.com/phillipberndt/autorandr + arch = i686 + arch = x86_64 + license = GPL + makedepends = git optdepends = disper - conflicts = auto-disper-git + optdepends = pm-utils + provides = autorandr + conflicts = autorandr + conflicts = autorandr-asch-git + conflicts = autorandr-phillipberndt-git + source = autorandr::git+https://github.com/phillipberndt/autorandr.git + md5sums = SKIP pkgname = autorandr-git @@ -1,31 +1,40 @@ -# Maintainer: Ng Oon-Ee <ngoonee.talk@gmail.com> -# Contributor (auto-disper-git): Byron Clark <byron@theclarkfamily.name> -pkgname=autorandr-git -pkgver=20120301 +# Maintainer: James An <james@jamesan.ca> +# Contributor: Ng Oon-Ee <ngoonee.talk@gmail.com> +# Contributor: Byron Clark <byron@theclarkfamily.name> (auto-disper-git) +# Contributor: phillipberndt (maintainer of the current autorandr) +# Contributor: wertarbyte (original author of auto-disper and autorandr) + +_pkgname=autorandr +pkgname="$_pkgname-git" +pkgver=r96.8429886 pkgrel=1 -pkgdesc="Auto-detect connected display hardware and load appropriate X11 setup using xrandr or disper. Formerly auto-disper." -url="http://github.com/wertarbyte/autorandr" -arch=('any') -license=('None') -optdepends=('disper') -conflicts=('auto-disper-git') -makdepends=('git') +pkgdesc="Auto-detect the connect display hardware and load the appropiate X11 setup using xrandr or disper. Formerly autodisper." +arch=('i686' 'x86_64') +url="https://github.com/phillipberndt/$_pkgname" +license=('GPL') +depends=() +makedepends=('git') +optdepends=('disper' 'pm-utils') +provides=("$_pkgname") +conflicts=( + "$_pkgname" + 'autorandr-asch-git' + 'autorandr-phillipberndt-git' +) +source=("$_pkgname"::"git+https://github.com/phillipberndt/$_pkgname.git") +md5sums=('SKIP') -_gitroot="http://github.com/wertarbyte/autorandr.git" -_gitname=autorandr - -build() { - cd ${srcdir} - - if [ -d ${_gitname} ]; then - cd ${_gitname} && git pull origin - else - git clone ${_gitroot} ${_gitname} - fi +pkgver() { + cd "$_pkgname" + ( + set -o pipefail + git describe --long --tag | sed -r 's/([^-]*-g)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} - install -D -m 0755 ${srcdir}/${_gitname}/autorandr ${pkgdir}/usr/bin/autorandr - ln -s /usr/bin/autorandr ${pkgdir}/usr/bin/auto-disper - install -D -m 0755 ${srcdir}/${_gitname}/pm-utils/40autorandr ${pkgdir}/etc/pm/sleep.d/40autorandr - install -D -m 0755 ${srcdir}/${_gitname}/bash_completion/autorandr ${pkgdir}/etc/bash_completion.d/autorandr +package() { + cd "$_pkgname" + make DESTDIR="$pkgdir/" install + make DESTDIR="$pkgdir/" hotplug } -# vim: set ft=sh ts=2 sw=2 et: |