arch-ppa/src/targetcli-fb/PKGBUILD

37 lines
1.1 KiB
Bash
Raw Normal View History

2016-11-05 23:28:50 -04:00
# Contributor: Johannes Dewender arch at JonnyJD dot net
pkgname=targetcli-fb
pkgver=2.1.53
2016-11-05 23:28:50 -04:00
pkgrel=1
pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)"
arch=('any')
2017-04-02 01:19:02 -04:00
url="https://github.com/open-iscsi/targetcli-fb"
2016-11-05 23:28:50 -04:00
license=('Apache')
groups=()
depends=('python-rtslib-fb>=2.1.fb52' 'python-configshell-fb>=1.1.fb17'
2019-03-03 20:21:14 -05:00
'python-dbus' 'python-gobject')
2016-11-05 23:28:50 -04:00
makedepends=('python-setuptools')
2017-03-13 12:19:25 -04:00
optdepends=('python-ethtool')
2016-11-05 23:28:50 -04:00
provides=('targetcli')
backup=()
options=()
install=
2017-04-02 01:19:02 -04:00
source=(https://github.com/open-iscsi/targetcli-fb/archive/v${pkgver}.tar.gz)
sha512sums=('acefa7f8df8ee901cae8f04cbeb264d6024100e2d8b8343024bc52842af88a23d1bf5dd880ff2c77046bd8da8493630b4e357103617c02d1a90947e42c3a7c92')
2016-11-05 23:28:50 -04:00
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i "s|/lib/systemd/system|lib/systemd/system|" setup.py
2016-11-05 23:28:50 -04:00
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: