void-packages/srcpkgs/spl/template

39 lines
1.2 KiB
Bash
Raw Normal View History

2014-08-06 19:16:38 +00:00
# Template file for 'spl'
pkgname=spl
2015-06-27 11:31:56 +00:00
version=0.6.4.2
revision=2
2015-03-20 14:20:10 +00:00
wrksrc="${pkgname}-${pkgname}-${version/r/-}"
2014-08-06 19:16:38 +00:00
build_style=gnu-configure
configure_args="--with-config=user"
2015-03-20 14:20:10 +00:00
hostmakedepends="automake libtool"
2014-08-06 19:16:38 +00:00
short_desc="Solaris Porting Layer -- userland and kernel modules (using DKMS)"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://zfsonlinux.org/"
2015-03-20 12:02:33 +00:00
distfiles="https://github.com/zfsonlinux/${pkgname}/archive/${pkgname}-${version/r/-}.tar.gz"
2015-06-27 11:31:56 +00:00
checksum=05c428f48acc55287c0662a90cfc087985b8ef3694dc057cfb16e1fa2ebbda43
2015-04-10 10:08:14 +00:00
nocross=yes
2014-08-06 19:16:38 +00:00
triggers="dkms"
2015-03-20 14:20:10 +00:00
dkms_modules="spl ${version/r/-}"
depends="dkms>=2.2.0.3_9 ${pkgname}-devel>=${version}_${revision}"
2014-08-06 19:16:38 +00:00
2015-03-20 14:20:10 +00:00
pre_configure() {
autoreconf -fi
tar czf ../clean.tar.gz .
}
2014-08-06 19:16:38 +00:00
post_install() {
2015-03-20 14:20:10 +00:00
vmkdir usr/src/${pkgname}-${version/r/-}
tar xf ../clean.tar.gz -C ${DESTDIR}/usr/src/${pkgname}-${version/r/-}
scripts/dkms.mkconf -v ${version/r/-} -f ${DESTDIR}/usr/src/${sourcepkg}-${version/r/-}/dkms.conf -n spl
2014-11-23 13:24:46 +00:00
}
2014-08-06 19:16:38 +00:00
spl-devel_package() {
2014-11-23 13:24:46 +00:00
short_desc="Solaris Porting Layer -- development headers"
pkg_install() {
2015-03-20 14:20:10 +00:00
vmove usr/src/${sourcepkg}-${version/r/-}/include
2014-11-23 13:24:46 +00:00
}
2014-08-06 19:16:38 +00:00
}
2015-03-20 14:20:10 +00:00
do_clean() {
rm -f ../clean.tar.gz
}