2013-03-19 01:18:32 +01:00
|
|
|
# Template file for 'netbsd-rumpkernel'.
|
|
|
|
pkgname=netbsd-rumpkernel
|
2014-03-18 07:08:46 +01:00
|
|
|
version=20140317
|
2014-09-23 18:01:50 +02:00
|
|
|
revision=2
|
2013-12-06 18:29:44 +01:00
|
|
|
wrksrc="buildrump-${version}"
|
2014-02-21 15:49:20 +01:00
|
|
|
short_desc="The NetBSD rump kernel"
|
2013-03-19 01:18:32 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="BSD"
|
|
|
|
homepage="https://github.com/anttikantee/buildrump.sh"
|
2013-12-06 18:29:44 +01:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/rumpkernel/buildrump-${version}.tar.xz"
|
2014-03-18 07:08:46 +01:00
|
|
|
checksum=0e198be8d93142523a3fb15ce70be9aead9ff2687d9582c8916d7590979509ed
|
2013-03-19 01:18:32 +01:00
|
|
|
|
2014-09-23 18:01:50 +02:00
|
|
|
do_configure() {
|
|
|
|
# Do not install preformatted manpages
|
|
|
|
sed -i '/MKCATPAGES/d' buildrump.sh
|
|
|
|
}
|
2013-03-20 22:52:41 +01:00
|
|
|
do_build() {
|
2014-09-23 18:01:50 +02:00
|
|
|
export CPPFLAGS=-Wno-error
|
|
|
|
|
2013-03-20 22:52:41 +01:00
|
|
|
./buildrump.sh ${makejobs} -r -V MKPICINSTALL=no -d ${DESTDIR}/usr tools
|
|
|
|
./buildrump.sh ${makejobs} -r -d ${DESTDIR}/usr build
|
2013-03-19 01:18:32 +01:00
|
|
|
}
|
|
|
|
do_install() {
|
2013-03-19 01:27:07 +01:00
|
|
|
./buildrump.sh -r -V MKPICINSTALL=no -d ${DESTDIR}/usr install
|
2013-03-19 01:56:41 +01:00
|
|
|
# Set proper perms to libs.
|
|
|
|
chmod 644 ${DESTDIR}/usr/lib/*.a
|
|
|
|
chmod 755 ${DESTDIR}/usr/lib/*.so.*
|
2013-03-19 01:18:32 +01:00
|
|
|
}
|
2013-04-14 04:36:19 +02:00
|
|
|
|
|
|
|
netbsd-rumpkernel-devel_package() {
|
2013-12-06 18:29:44 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2013-06-03 09:44:34 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-14 04:36:19 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove "usr/lib/*.a"
|
2013-07-02 10:00:04 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-14 04:36:19 +02:00
|
|
|
}
|
|
|
|
}
|