diff options
Diffstat (limited to 'gkbuilds/kmod.gkbuild')
-rw-r--r-- | gkbuilds/kmod.gkbuild | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gkbuilds/kmod.gkbuild b/gkbuilds/kmod.gkbuild new file mode 100644 index 0000000..6bdc0c4 --- /dev/null +++ b/gkbuilds/kmod.gkbuild @@ -0,0 +1,30 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +src_prepare() { + default + + sed -i \ + -e '/--enable-static is not supported by kmod/s:as_fn_error:echo:' \ + configure || die "Failed to re-enable static support" +} + +src_configure() { + local myconf=( + --without-xz + --with-zlib + --without-openssl + --disable-python + --disable-tools + --enable-static + ) + + gkconf "${myconf[@]}" +} + +src_install() { + default + + rm -rf \ + "${D}"/usr/share/ +} |