Add package for pylibzfs

This commit is contained in:
Rene Hollander 2022-08-13 16:09:25 +02:00
commit 1982ec50ca
No known key found for this signature in database
GPG key ID: ED042B77E4789F81
2 changed files with 44 additions and 0 deletions

15
.SRCINFO Normal file
View file

@ -0,0 +1,15 @@
pkgbase = python-pylibzfs
pkgdesc = Python libzfs bindings.
pkgver = 22.02.3
pkgrel = 1
url = https://github.com/truenas/py-libzfs
arch = x86_64
license = custom
makedepends = python-setuptools
makedepends = cython
depends = zfs-utils
depends = python
source = https://github.com/truenas/py-libzfs/archive/refs/tags/TS-22.02.3.tar.gz
sha512sums = 8ab05e780529d0956963488b6de0a766e605bcfb99b829a842d14b81e4bd6862c1b57bfd927824341006b299da10f6188b48d7a99460bfa21ac617d752f58a40
pkgname = python-pylibzfs

29
PKGBUILD Normal file
View file

@ -0,0 +1,29 @@
# Maintainer: Rene Hollander <mail@renehollander.at>
pkgname=python-pylibzfs
pkgver=22.02.3
pkgrel=1
pkgdesc="Python libzfs bindings."
arch=("x86_64")
url="https://github.com/truenas/py-libzfs"
license=("custom")
makedepends=("python-setuptools" "cython")
depends=("zfs-utils" "python")
source=("https://github.com/truenas/py-libzfs/archive/refs/tags/TS-${pkgver}.tar.gz")
sha512sums=("8ab05e780529d0956963488b6de0a766e605bcfb99b829a842d14b81e4bd6862c1b57bfd927824341006b299da10f6188b48d7a99460bfa21ac617d752f58a40")
build() {
cd "${srcdir}/py-libzfs-TS-${pkgver}"
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/py-libzfs-TS-${pkgver}"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python setup.py install --root="$pkgdir" --optimize=1
}