PKGBUILDs/aur/targetcli-fb/PKGBUILD

36 lines
1,009 B
Bash
Raw Normal View History

2014-05-03 15:51:26 +00:00
# Contributor: Johannes Dewender arch at JonnyJD dot net
pkgname=targetcli-fb
2014-12-05 02:34:20 +00:00
pkgver=2.1.fb38
2014-05-03 15:51:26 +00:00
pkgrel=1
pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)"
arch=('any')
url="https://github.com/agrover/targetcli-fb"
license=('Apache')
groups=()
2014-12-05 02:34:20 +00:00
depends=('python-rtslib-fb>=2.1.fb51' 'python-configshell-fb>=1.1.fb12')
2014-05-03 15:51:26 +00:00
makedepends=('python-setuptools')
# TODO: optdepend on python-ethtool when available for python3
optdepends=()
provides=('targetcli')
backup=()
options=()
install=
source=(https://fedorahosted.org/releases/t/a/targetcli-fb/$pkgname-$pkgver.tar.gz)
2014-12-05 02:34:20 +00:00
sha256sums=('cee85005cf2b4ee88d313843029585ead98b0dd14ae326154a6e2f47baa4ef6d')
2014-05-03 15:51:26 +00:00
build() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py build
gzip --stdout targetcli.8 > "targetcli.8.gz"
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py install --skip-build --root="$pkgdir/" --optimize=1
install -D -m 644 targetcli.8.gz "$pkgdir/usr/share/man/man8/targetcli.8.gz"
}
# vim:set ts=2 sw=2 et: