1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
6 pkgdesc="A library, GUI and CLI script for managing Data Robotics storage units on Linux"
8 url="http://drobo-utils.sourceforge.net/"
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')
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|" \
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