void-packages/srcpkgs/spl/template

39 lines
1.2 KiB
Bash
Raw Normal View History

2014-08-06 21:16:38 +02:00
# Template file for 'spl'
pkgname=spl
2015-04-25 15:22:27 +02:00
version=0.6.4.1
2015-03-19 00:50:14 +01:00
revision=1
2015-03-20 15:20:10 +01:00
wrksrc="${pkgname}-${pkgname}-${version/r/-}"
2014-08-06 21:16:38 +02:00
build_style=gnu-configure
configure_args="--with-config=user --sbindir=/usr/bin"
2015-03-20 15:20:10 +01:00
hostmakedepends="automake libtool"
2014-08-06 21:16:38 +02: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 13:02:33 +01:00
distfiles="https://github.com/zfsonlinux/${pkgname}/archive/${pkgname}-${version/r/-}.tar.gz"
2015-04-25 15:22:27 +02:00
checksum=e3f3f07e905ecf4c799be3a3c9c1aaa2ee55896710ed376f654081e016b46164
2015-04-10 12:08:14 +02:00
nocross=yes
2014-08-06 21:16:38 +02:00
triggers="dkms"
2015-03-20 15:20:10 +01:00
dkms_modules="spl ${version/r/-}"
depends="dkms>=2.2.0.3_9 ${pkgname}-devel>=${version}_${revision} glibc-devel"
2014-08-06 21:16:38 +02:00
2015-03-20 15:20:10 +01:00
pre_configure() {
autoreconf -fi
tar czf ../clean.tar.gz .
}
2014-08-06 21:16:38 +02:00
post_install() {
2015-03-20 15:20:10 +01: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 14:24:46 +01:00
}
2014-08-06 21:16:38 +02:00
spl-devel_package() {
2014-11-23 14:24:46 +01:00
short_desc="Solaris Porting Layer -- development headers"
pkg_install() {
2015-03-20 15:20:10 +01:00
vmove usr/src/${sourcepkg}-${version/r/-}/include
2014-11-23 14:24:46 +01:00
}
2014-08-06 21:16:38 +02:00
}
2015-03-20 15:20:10 +01:00
do_clean() {
rm -f ../clean.tar.gz
}