2011-10-18 02:54:14 +00:00
|
|
|
# Contributor: Johannes Dewender arch at JonnyJD dot net
|
|
|
|
pkgname=python2-rtslib
|
2013-08-13 01:17:55 +00:00
|
|
|
pkgver=2.2
|
2013-10-11 17:15:47 +00:00
|
|
|
pkgrel=2
|
2012-04-15 17:09:31 +00:00
|
|
|
epoch=
|
2011-10-18 02:54:14 +00:00
|
|
|
pkgdesc="RisingTide Systems generic SCSI target API in python"
|
|
|
|
arch=('any')
|
|
|
|
url="http://www.risingtidesystems.com/git/?p=rtslib.git;a=summary"
|
2013-08-13 01:17:55 +00:00
|
|
|
license=('Apache')
|
2013-03-17 21:07:51 +00:00
|
|
|
depends=('python2-ipaddr' 'python2-netifaces' 'python2-configobj')
|
2012-04-15 17:09:31 +00:00
|
|
|
provides=()
|
|
|
|
conflicts=()
|
|
|
|
backup=()
|
|
|
|
options=()
|
|
|
|
install=
|
|
|
|
|
|
|
|
_pkgname=rtslib
|
2011-10-18 02:54:14 +00:00
|
|
|
|
|
|
|
build() {
|
2012-04-15 17:09:31 +00:00
|
|
|
if [ ! -e "$_pkgname-$pkgver.tgz" ]; then
|
2013-10-11 17:15:47 +00:00
|
|
|
curl -fLC - "http://www.risingtidesystems.com/git/?p=$_pkgname.git;a=snapshot;h=909a40c908247135f30b27eb5d69b292aeedd0b4;sf=tgz" -o "$_pkgname-$pkgver.tgz"
|
2012-04-15 17:09:31 +00:00
|
|
|
fi
|
|
|
|
bsdtar -xf "$srcdir/$_pkgname-$pkgver.tgz"
|
2011-10-18 02:54:14 +00:00
|
|
|
|
|
|
|
cd "$srcdir/$_pkgname"
|
|
|
|
python2 setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_pkgname"
|
|
|
|
python2 setup.py install --skip-build --root="$pkgdir/" --optimize=1
|
|
|
|
|
|
|
|
install -d "$pkgdir/var/target/fabric"
|
|
|
|
for file in specs/*; do
|
|
|
|
install -m 644 "$file" "$pkgdir/var/target/fabric/"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|