Add package for pylibzfs
This commit is contained in:
commit
1982ec50ca
2 changed files with 44 additions and 0 deletions
15
.SRCINFO
Normal file
15
.SRCINFO
Normal 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
29
PKGBUILD
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue