PKGBUILDs/aur/targetcli/PKGBUILD

35 lines
829 B
Bash
Raw Normal View History

# Contributor: Johannes Dewender arch at JonnyJD dot net
pkgname=targetcli
2013-08-13 01:17:55 +00:00
pkgver=2.1
2013-10-11 17:15:47 +00:00
pkgrel=2
2013-03-17 21:07:51 +00:00
epoch=
pkgdesc="The targetcli administration shell."
arch=('any')
url="http://linux-iscsi.org/wiki/RTSadmin"
2013-08-13 01:17:55 +00:00
license=('Apache')
2013-03-17 21:07:51 +00:00
groups=()
depends=('python2-rtslib' 'lio-utils' 'python2-configshell')
2013-03-17 21:07:51 +00:00
optdepends=()
replaces=('rtsadmin')
2013-03-17 21:07:51 +00:00
backup=()
options=()
install=
source=()
md5sums=()
build() {
2013-03-17 21:07:51 +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=a7c313ce9810a0b178e0e8cfaf5ffc22d8868e30;sf=tgz" -o "$pkgname-$pkgver.tgz"
2013-03-17 21:07:51 +00:00
fi
bsdtar -xf "$srcdir/$pkgname-$pkgver.tgz"
cd "$srcdir/$pkgname"
python2 setup.py build
}
package() {
cd "$srcdir/$pkgname"
python2 setup.py install --skip-build --root="$pkgdir/" --optimize=1
}
2013-03-17 21:07:51 +00:00
# vim:set ts=2 sw=2 et: