-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
45 lines (42 loc) · 1.34 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Template file for 'netbsd-rumpkernel'
pkgname=netbsd-rumpkernel
version=20140526
revision=4
archs="x86_64* i686*"
hostmakedepends="git tar"
short_desc="NetBSD rump kernel"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/anttikantee/buildrump.sh"
distfiles="https://github.com/rumpkernel/buildrump.sh/archive/v${version}.tar.gz"
checksum=c39e587868cd36ff5c6fa778aa47dd21dfcc9529409fad02a7fe33ade24a57a8
nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/28268/steps/shell_3/logs/stdio"
do_configure() {
./buildrump.sh checkout
# Do not install preformatted manpages
sed -i '/MKCATPAGES/d' buildrump.sh
# Do not error out on warnings
grep -rlw -- "-Werror" | xargs sed -i -e "s;-Werror;-Wno-error;"
}
do_build() {
HOST_CFLAGS=-fcommon \
./buildrump.sh ${makejobs} -r -V MKPICINSTALL=no -d ${DESTDIR}/usr tools
./buildrump.sh ${makejobs} -r -d ${DESTDIR}/usr build
}
do_install() {
./buildrump.sh -r -V MKPICINSTALL=no -d ${DESTDIR}/usr install
# Set proper perms to libs.
chmod 644 ${DESTDIR}/usr/lib/*.a
chmod 755 ${DESTDIR}/usr/lib/*.so.*
vlicense LICENSE
}
netbsd-rumpkernel-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/share
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}