diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-01 22:21:00 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-06-01 22:21:00 -0300 |
commit | 888ba65470b25311d05aa55c9f88fb6736ece938 (patch) | |
tree | 139490225c3190a6f5728d3756fd17ea9038467b /pcr/dratmenu/PKGBUILD | |
parent | e08edc31359b2fdc2baf4ea9da246c6fac717ab6 (diff) | |
parent | bf725c5b41e91a279bd79c6749b4b8950005d456 (diff) |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/dratmenu/PKGBUILD')
-rw-r--r-- | pcr/dratmenu/PKGBUILD | 57 |
1 files changed, 32 insertions, 25 deletions
diff --git a/pcr/dratmenu/PKGBUILD b/pcr/dratmenu/PKGBUILD index d1bace462..aef16cdf4 100644 --- a/pcr/dratmenu/PKGBUILD +++ b/pcr/dratmenu/PKGBUILD @@ -1,36 +1,43 @@ -# Contributor (Arch): ivoarch <ivkuzev@gmail.com> -# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@replicant.io> +# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $ +# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@hackers.camp> +# Contributor: ivoarch <ivkuzev@gmail.com> pkgname=dratmenu -pkgver=20121218 -pkgrel=1 -pkgdesc="ratpoison window dmenu" -arch=('any') -url="https://github.com/dimatura/dratmenu.git" +pkgver=d299ddf +pkgrel=2 +epoch= +pkgdesc="A trivial python hack to select windows in Ratpoison with dmenu." +arch=('i686' 'x86_64') +url="https://github.com/dimatura/dratmenu" license=('GPL') +groups=() depends=('dmenu' 'python2') makedepends=('git') +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+https://github.com/dimatura/dratmenu.git") +noextract=() +md5sums=('SKIP') -_gitroot="https://github.com/dimatura/dratmenu.git" -_gitname="master" - -build() { - cd $srcdir - - if [ -d $srcdir/$pkgname ] ; then - msg "update git" - cd $pkgname && git pull origin - else - msg "clone git" - git clone $_gitroot - fi +pkgver() { + cd $srcdir/$pkgname + git describe --always | sed 's|-|.|g' } package() { - mkdir -p $pkgdir/usr/lib/python2.7/site-packages - cp -r $srcdir/$pkgname $pkgdir/usr/lib/python2.7/site-packages - mkdir -p $pkgdir/usr/bin - echo "#!/bin/bash + mkdir -p $pkgdir/usr/lib/python2.7/site-packages + cp -r $srcdir/$pkgname $pkgdir/usr/lib/python2.7/site-packages + mkdir -p $pkgdir/usr/bin + echo "#!/bin/bash python2 /usr/lib/python2.7/site-packages/$pkgname/dratmenu.py" > $pkgdir/usr/bin/dratmenu - chmod +x $pkgdir/usr/bin/dratmenu + chmod +x $pkgdir/usr/bin/$pkgname } + +# vim:set ts=2 sw=2 et: |