void-packages/srcpkgs/spl/template
2018-11-15 12:08:27 -05:00

34 lines
1 KiB
Bash

# Template file for 'spl'
pkgname=spl
version=0.7.12
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=4709a06e913bbbeb634161a8b68c3f879e5b6040c6c0c09b1f51042b3178c274
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
}