updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lunch / PKGBUILD
blob7703b70317903d5b7822cafae5434ac9565dfe08
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=lunch
4 pkgver=0.4.0
5 pkgrel=1
6 pkgdesc="A distributed process launcher and manager for GNU/Linux"
7 arch=('any')
8 url="http://tarballs.quessy.net/"
9 license=('GPL')
10 depends=('python2')
11 makedepends=('help2man' 'epydoc>=3.0.1')
12 install="$pkgname.install"
13 source=($url$pkgname-$pkgver.tar.gz)
14 md5sums=('df7c502b227e9d862d4b8d7449277233')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
19   # python2 fixes
20   sed -i "s|env python|&2|g" `grep -Erl "env python" .`
22   # Makefile fixes
23   sed -e "s|python|&2|g;s|/local||g;s|prefix.*|& --root=$pkgdir|" \
24       -e "s|/usr/|$pkgdir&|g;s|\tinstall|& -Dm644|g;s|ns/|&lunch.desktop|" \
25       -i Makefile
27   make html
30 package() {
31   cd "$srcdir/$pkgname-$pkgver"
33   make DESTDIR="$pkgdir/" install
35   # Install doc and examples
36   install -d "$pkgdir/usr/share/"{doc/,}$pkgname
37   cp -a *html* "$pkgdir/usr/share/doc/$pkgname"
38   cp -a examples "$pkgdir/usr/share/$pkgname"
41 # vim:set ts=2 sw=2 et: