summaryrefslogtreecommitdiff
path: root/experimental/zfs-utils/APKBUILD
blob: b9221e20fa06bdd2bfad501f30e2216da3260a93 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: Sheila Aman <sheila@vulpine.house>
# keep these in sync with kernel version
_kflavour=""
_kver="5.4.5-mc0"
_kver2="$_kver-easy"
pkgname=zfs-utils
pkgver=0.8.3
pkgrel=0
pkgdesc="User utilities for the ZFS filesystem"
url="https://open-zfs.org"
arch="all"
license="CDDL"
depends=""
makedepends="eudev-dev libtirpc-dev linux-headers openssl-dev zlib-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc zfs-openrc"
source="https://github.com/zfsonlinux/zfs/releases/download/zfs-$pkgver/zfs-$pkgver.tar.gz"
builddir="$srcdir/zfs-$pkgver"

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-linux=/usr/src/linux-$_kver \
		--with-spec=generic \
		--with-config=user
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -r "$pkgdir/usr/share/zfs/zfs-tests"
}

sha512sums="aded632e6b04180560d4f2ff283260016e883dadae4e7fda9070b7113dee948099cb7a7b183f1c8139654389a2610fb9cc6f997acdc846040e605125cf016010  zfs-0.8.3.tar.gz"