38 lines
1.4 KiB
Bash
38 lines
1.4 KiB
Bash
# Contributor: Johannes Dewender arch at JonnyJD dot net
|
|
pkgname=targetcli-fb
|
|
pkgver=3.0.0
|
|
pkgrel=1
|
|
pkgdesc="free branch of the targetcli LIO administration shell (iSCSI + Co)"
|
|
arch=('any')
|
|
url="https://github.com/open-iscsi/targetcli-fb"
|
|
license=('Apache')
|
|
groups=()
|
|
depends=('python-rtslib-fb' 'python-configshell-fb'
|
|
'python-dbus' 'python-gobject')
|
|
makedepends=(python-build python-installer python-wheel)
|
|
optdepends=()
|
|
provides=('targetcli')
|
|
backup=()
|
|
options=()
|
|
install=
|
|
source=(https://github.com/open-iscsi/targetcli-fb/archive/v${pkgver}.tar.gz)
|
|
sha512sums=('b9a0dac75d979df7639b88f755194c41ea2156af7ebfa43aae27186ebe5e46ca7d9e24782c53da9d8915ca0772a7ba089dd725ce8c7cf05b1c0a85b7cd1fc929')
|
|
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build --wheel --no-isolation
|
|
gzip --stdout targetcli.8 > "targetcli.8.gz"
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
install -D -m 644 targetcli.8.gz "$pkgdir/usr/share/man/man8/targetcli.8.gz"
|
|
install -D -m 644 systemd/targetclid.service "$pkgdir/usr/lib/systemd/system/targetclid.service"
|
|
install -D -m 644 systemd/targetclid.socket "$pkgdir/usr/lib/systemd/system/targetclid.socket"
|
|
install -D -m 644 README.md "$pkgdir/usr/share/doc/targetcli/README.md"
|
|
install -D -m 644 THANKS "$pkgdir/usr/share/doc/targetcli/THANKS"
|
|
}
|