void-packages/srcpkgs/spl/template

35 lines
1.0 KiB
Bash

# Template file for 'spl'
pkgname=spl
version=0.7.13
revision=1
build_style=gnu-configure
configure_args="--with-config=user"
hostmakedepends="libtool"
short_desc="Solaris Porting Layer -- userland and kernel modules (using DKMS)"
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://zfsonlinux.org/"
distfiles="https://github.com/zfsonlinux/zfs/releases/download/zfs-${version}/spl-${version}.tar.gz"
checksum=6fd4445850ac67b228fdd82fff7997013426a1c2a8fa9017ced70cc9ad2a4338
dkms_modules="spl ${version}"
depends="dkms>=2.2.0.3_9 ${pkgname}-devel>=${version}_${revision}"
pre_configure() {
tar czf ../clean.tar.gz .
}
post_install() {
vmkdir usr/src/${pkgname}-${version}
tar xf ../clean.tar.gz -C ${DESTDIR}/usr/src/${pkgname}-${version}
scripts/dkms.mkconf -v ${version} -f ${DESTDIR}/usr/src/${sourcepkg}-${version}/dkms.conf -n spl
}
spl-devel_package() {
short_desc="Solaris Porting Layer -- development headers"
pkg_install() {
vmove usr/src/${sourcepkg}-${version}/include
}
}
do_clean() {
rm -f ../clean.tar.gz
}