commit 1982ec50ca25d1ee561daa54d2c3de0f2f5f33b5 Author: Rene Hollander Date: Sat Aug 13 16:09:25 2022 +0200 Add package for pylibzfs diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..86fe2155c6e --- /dev/null +++ b/.SRCINFO @@ -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 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..42888f2fdea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Rene Hollander + +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 +}