diff options
author | Gabriel Souza Franco | 2017-11-01 16:04:25 +0100 |
---|---|---|
committer | Gabriel Souza Franco | 2017-11-01 16:41:23 +0100 |
commit | fdc0318266c0f6f1266de17d8924b7e723998dbd (patch) | |
tree | 4ff59a543c8addcb31539ea6def783d4123e01b5 | |
parent | 04e6c1625bad3a3d4108ba045c37e874764a3ae6 (diff) | |
download | aur-fdc0318266c0f6f1266de17d8924b7e723998dbd.tar.gz |
Install systemd service and PKGBUILD cleanup
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 72 | ||||
-rw-r--r-- | powerline.install | 17 |
3 files changed, 57 insertions, 55 deletions
@@ -1,7 +1,7 @@ pkgbase = python-powerline-git pkgdesc = The ultimate statusline/prompt utility - pkgver = r2391.090cd13 - pkgrel = 2 + pkgver = 2.6+64+g5198b504 + pkgrel = 1 epoch = 1 url = https://github.com/powerline/powerline install = powerline.install @@ -12,31 +12,30 @@ pkgbase = python-powerline-git makedepends = python2-setuptools makedepends = python-setuptools makedepends = python2-sphinx - source = powerline::git://github.com/powerline/powerline.git#branch=develop - source = powerline.install + source = powerline::git+https://github.com/powerline/powerline.git#branch=develop sha256sums = SKIP - sha256sums = af07852748ddba1544feee53fdf747d3dd163597f026719f8a6f80045d0c5425 pkgname = python2-powerline-git depends = python2>=2.6 optdepends = python2-psutil: improved system information optdepends = python2-pygit2: improved git support - optdepends = mercurial: improved mercurial support + optdepends = python2-hglib: improved mercurial support optdepends = zsh: better shell prompt - optdepends = gvim: vim compiled with Python support - conflicts = python2-powerline + optdepends = vim: vim compiled with Python support + conflicts = powerline2 + conflicts = powerline conflicts = python-powerline-git - conflicts = python-powerline conflicts = otf-powerline-symbols-git pkgname = python-powerline-git depends = python>=3.2 optdepends = python-psutil: improved system information optdepends = python-pygit2: improved git support + optdepends = python-hglib: improved mercurial support optdepends = zsh: better shell prompt - optdepends = gvim: vim compiled with Python support - conflicts = python2-powerline + optdepends = vim: vim compiled with Python support + conflicts = powerline2 + conflicts = powerline conflicts = python2-powerline-git - conflicts = python-powerline conflicts = otf-powerline-symbols-git @@ -1,73 +1,75 @@ -# Maintainer: Timothée Ravier <tim@siosm.fr> +# Maintainer: Gabriel Souza Franco <Z2FicmllbGZyYW5jb3NvdXphQGdtYWlsLmNvbQ==> +# Contributor: Timothée Ravier <tim@siosm.fr> # Contributor: Pablo Olmos de Aguilera C. pablo+aur at odac dot co # Contributor: Kim Silkebækken <kim.silkebaekken+aur@gmail.com> -_gitname=powerline -_gitbranch=develop pkgbase=python-powerline-git pkgname=('python2-powerline-git' 'python-powerline-git') pkgdesc='The ultimate statusline/prompt utility' -pkgver=r2391.090cd13 -pkgrel=2 +pkgver=2.6+64+g5198b504 +pkgrel=1 epoch=1 url='https://github.com/powerline/powerline' license=('MIT') arch=('i686' 'x86_64') makedepends=('git' 'python2-setuptools' 'python-setuptools' 'python2-sphinx') -install="${_gitname}.install" -source=("${_gitname}::git://github.com/powerline/${_gitname}.git#branch=${_gitbranch}" - "${install}") -sha256sums=('SKIP' - 'af07852748ddba1544feee53fdf747d3dd163597f026719f8a6f80045d0c5425') +install='powerline.install' +source=('powerline::git+https://github.com/powerline/powerline.git#branch=develop') +sha256sums=('SKIP') pkgver() { - cd "${_gitname}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd powerline + local base_version=$(sed -n "s/\s*base_version\s*=\s*['\"]\(.*\)['\"]\s*/\1/p" setup.py) + local count=+$(git rev-list --count $(git blame setup.py | grep "\s*base_version\s*=.*$base_version" | cut -d\ -f1)..HEAD) + local rev=$(git rev-parse --short HEAD) + printf '%s%s+g%s' "$base_version" "${count/+0/}" "$rev" } build() { - cd "${_gitname}"/docs + cd powerline/docs make man SPHINXBUILD=sphinx-build2 } package_generic() { # Fonts - install -dm755 "${pkgdir}/etc/fonts/conf.d" - install -Dm644 "font/PowerlineSymbols.otf" "${pkgdir}/usr/share/fonts/OTF/PowerlineSymbols.otf" - install -Dm644 "font/10-powerline-symbols.conf" "${pkgdir}/etc/fonts/conf.avail/10-powerline-symbols.conf" - ln -s "../conf.avail/10-powerline-symbols.conf" "${pkgdir}/etc/fonts/conf.d/10-powerline-symbols.conf" + install -dm755 "$pkgdir/etc/fonts/conf.d" + install -Dm644 "font/PowerlineSymbols.otf" "$pkgdir/usr/share/fonts/OTF/PowerlineSymbols.otf" + install -Dm644 "font/10-powerline-symbols.conf" "$pkgdir/etc/fonts/conf.avail/10-powerline-symbols.conf" + ln -s "../conf.avail/10-powerline-symbols.conf" "$pkgdir/etc/fonts/conf.d/10-powerline-symbols.conf" # Vim Plugin - install -Dm644 "powerline/bindings/vim/plugin/powerline.vim" "${pkgdir}/usr/share/vim/vimfiles/plugin/powerline.vim" + install -Dm644 "powerline/bindings/vim/plugin/powerline.vim" "$pkgdir/usr/share/vim/vimfiles/plugin/powerline.vim" # Zsh Plugin - install -Dm644 "powerline/bindings/zsh/powerline.zsh" "${pkgdir}/usr/share/zsh/site-contrib/powerline.zsh" + install -Dm644 "powerline/bindings/zsh/powerline.zsh" "$pkgdir/usr/share/zsh/site-contrib/powerline.zsh" # Tmux Configuration - install -Dm644 "powerline/bindings/tmux/powerline.conf" "${pkgdir}/usr/share/tmux/powerline.conf" + install -Dm644 "powerline/bindings/tmux/powerline.conf" "$pkgdir/usr/share/tmux/powerline.conf" + + # Systemd Service + install -Dm644 "powerline/dist/systemd/powerline-daemon.service" "$pkgdir/usr/lib/systemd/user/powerline-daemon.service" # License - install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" # Manpages - install -dm755 "${pkgdir}/usr/share/man/man1/" - install -Dm644 "docs/_build/man/"* "${pkgdir}/usr/share/man/man1/" + install -dm755 "$pkgdir/usr/share/man/man1/" + install -Dm644 "docs/_build/man/"* "$pkgdir/usr/share/man/man1/" } package_python2-powerline-git() { depends=('python2>=2.6') optdepends=('python2-psutil: improved system information' 'python2-pygit2: improved git support' - 'mercurial: improved mercurial support' + 'python2-hglib: improved mercurial support' 'zsh: better shell prompt' - 'gvim: vim compiled with Python support') - conflicts=('python2-powerline' + 'vim: vim compiled with Python support') + conflicts=('powerline2' 'powerline' 'python-powerline-git' - 'python-powerline' 'otf-powerline-symbols-git') - cd "${_gitname}" - python2 setup.py install --root="${pkgdir}" --optimize=1 + cd powerline + python2 setup.py install --root="$pkgdir" --optimize=1 package_generic } @@ -76,15 +78,17 @@ package_python-powerline-git() { depends=('python>=3.2') optdepends=('python-psutil: improved system information' 'python-pygit2: improved git support' + 'python-hglib: improved mercurial support' 'zsh: better shell prompt' - 'gvim: vim compiled with Python support') - conflicts=('python2-powerline' + 'vim: vim compiled with Python support') + conflicts=('powerline2' 'powerline' 'python2-powerline-git' - 'python-powerline' 'otf-powerline-symbols-git') - cd "${_gitname}" - python setup.py install --root="${pkgdir}" --optimize=1 + cd powerline + python setup.py install --root="$pkgdir" --optimize=1 package_generic } + +# vim: sw=4 noet diff --git a/powerline.install b/powerline.install index 2a1aa34922e8..5318cc011f0f 100644 --- a/powerline.install +++ b/powerline.install @@ -1,8 +1,5 @@ post_install() { - echo "Updating font cache..." - fc-cache -f - - echo " + cat <<EOF IMPORTANT ========= @@ -34,10 +31,12 @@ Tmux installation Add the following line to your ~/.tmux.conf: source '/usr/share/tmux/powerline.conf' -" -} -post_remove() { - echo "Updating font cache..." - fc-cache -f +Systemd service +--------------- + +An user service has been installed, enable with: + + systemctl --user --now enable powerline-daemon +EOF } |