PKGBUILDs/aur/python2-rtslib/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Normal View History

2011-10-18 02:54:14 +00:00
# Contributor: Johannes Dewender arch at JonnyJD dot net
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - python-netifaces depend is now python2-netifaces
2011-10-18 02:54:14 +00:00
pkgname=python2-rtslib
pkgver=2.1
pkgrel=3.1
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"
license=('AGPL3')
depends=('python2-ipaddr' 'python2-netifaces' 'python-configobj')
2012-04-15 17:09:31 +00:00
provides=()
conflicts=()
backup=()
options=()
install=
source=('gz-modules-upstream.patch')
md5sums=('4add05b9cbd12258dc993f19728fbafe')
_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
wget "http://www.risingtidesystems.com/git/?p=$_pkgname.git;a=snapshot;h=c4ba14ff21f68e56d6a3a227a0220d1a6b6df958;sf=tgz" -O "$_pkgname-$pkgver.tgz"
fi
bsdtar -xf "$srcdir/$_pkgname-$pkgver.tgz"
2011-10-18 02:54:14 +00:00
cd "$srcdir/$_pkgname"
2012-04-15 17:09:31 +00:00
patch -p1 < ../gz-modules-upstream.patch
2011-10-18 02:54:14 +00:00
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: