void-packages/srcpkgs/spl/template

30 lines
1019 B
Plaintext

# Template file for 'spl'
pkgname=spl
version=0.6.3
revision=2
build_style=gnu-configure
configure_args="--with-config=user --sbindir=/usr/bin"
short_desc="Solaris Porting Layer -- userland and kernel modules (using DKMS)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://zfsonlinux.org/"
distfiles="http://archive.zfsonlinux.org/downloads/zfsonlinux/spl/spl-${version}.tar.gz"
checksum=898aa3912c73420a0082375679e28267a26d348a84561e25898a171785f41fe3
triggers="dkms"
dkms_modules="spl ${version}"
depends="dkms ${pkgname}-devel>=${version}_${revision} glibc-devel"
post_install() {
vmkdir usr/src
tar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz -C ${DESTDIR}/usr/src
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
}
}