void-packages/srcpkgs/spl/template

35 lines
1.0 KiB
Bash

# Template file for 'spl'
pkgname=spl
version=0.7.11
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.eu>"
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=d6ddd225e7f464007c960f10134c8a48fb0de525f75ad05d5ddf36685b1ced67
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
}