diff options
author | root <root@rshg054.dnsready.net> | 2013-09-26 03:23:44 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-09-26 03:23:44 -0700 |
commit | 5758d40da140a8e3602b08938ab5584a5afb0082 (patch) | |
tree | aaa8636be276d63ddc435c80caef94749ca0e152 /pcr/dratmenu | |
parent | 839df58b3e0710d90fb09388ab2797d47caa79ec (diff) |
Thu Sep 26 03:20:04 PDT 2013
Diffstat (limited to 'pcr/dratmenu')
-rw-r--r-- | pcr/dratmenu/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pcr/dratmenu/PKGBUILD b/pcr/dratmenu/PKGBUILD new file mode 100644 index 000000000..8d6a2b357 --- /dev/null +++ b/pcr/dratmenu/PKGBUILD @@ -0,0 +1,36 @@ +# Contributor: ivoarch <ivkuzev@gmail.com> +# Maintainer : Parabola Aurélien DESBRIÈRES <aurelien@replicant.io> + +pkgname=dratmenu +pkgver=20121218 +pkgrel=1 +pkgdesc="ratpoison window dmenu" +arch=('any') +url="https://github.com/dimatura/dratmenu.git" +license=('GPL') +depends=('dmenu' 'python2') +makedepends=('git') + +_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 +} + +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 + python2 /usr/lib/python2.7/site-packages/$pkgname/dratmenu.py" > $pkgdir/usr/bin/dratmenu + chmod +x $pkgdir/usr/bin/dratmenu +} |