blob: d1bace4622de9b5395928f2c25f0d5e08138dfb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Contributor (Arch): 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
}
|