updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / drobo-utils / PKGBUILD
blob49981b9000da1dc867a988fd02bb5d8ca2bf5023
1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
2 pkgname=drobo-utils
3 _pkgver=0.6.2
4 pkgver=${_pkgver}.2
5 pkgrel=2
6 pkgdesc="A library, GUI and CLI script for managing Data Robotics storage units on Linux"
7 arch=(any)
8 url="http://drobo-utils.sourceforge.net/"
9 license=('GPL3')
10 depends=('python2' 'pyqt' 'parted')
11 source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/r${_pkgver//./_}/${pkgname}-${pkgver}.tgz)
12 md5sums=('7e181580a9051f4c87b567692d9ec094')
13 sha1sums=('c6518b49c8304e3cbad7b39d9cfc2b3ab3c7484b')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   python2 setup.py install --root=$pkgdir
20   # Patch to use python2
21   find $pkgdir -type f \( -name '*.py' -or -executable \) -exec \
22     sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
23            -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
24     \{\} +
26   # Install some more stuff
27   install -Dm644 drobom.8 $pkgdir/usr/share/man/man8/drobom.8
28   install -Dm644 droboview.8 $pkgdir/usr/share/man/man8/droboview.8
29   for f in CHANGES.txt DEVELOPERS.txt README.txt; do
30     install -Dm644 $f $pkgdir/usr/share/doc/$pkgname/$f
31   done