# Contributor: Natanael Copa # Maintainer: Zach van Rijn pkgname=kbuild pkgver=0.1.9998.3600 pkgrel=0 pkgdesc="A cross-platform build environment" url="https://trac.netlabs.org/kbuild/wiki" arch="all" license="GPL-3.0-only" depends="" makedepends="autoconf automake flex byacc texinfo" subpackages="$pkgname-doc" source="https://distfiles.adelielinux.org/source/$pkgname/$pkgname-$pkgver.tar.gz fix-nodes-newline-escape.patch add-power-support.patch allperms.patch sys-types.patch kobjcache.patch obstack.patch os-linux.patch " prepare() { update_config_guess update_config_sub default_prepare # Add a file with the svn revision this package was pulled from printf '%s\n' "KBUILD_SVN_REV := ${pkgver##*.}" > SvnInfo.kmk for k in src/kmk src/sed; do ( cd "$builddir"/${k} aclocal -I config && autoheader && autoconf && automake --add-missing ) done } build() { kBuild/env.sh --full make -f bootstrap.gmk AUTORECONF=true } check() { kBuild/env.sh kmk check } package() { kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="$pkgdir" install } sha512sums="4d4ddfd6d3a6b2f040e459a846c81bf224e152af4a2789a27145a3f99afcf2002c1af5e689db6e32f2ac78fdc7e1f97b268416666b34ee18337a11823ecb12a3 kbuild-0.1.9998.3600.tar.gz e25b0c55b00028d4ecbced6f6266d85db6503bc038e1086e73913bd9192e11935e4eb77135587dcf51df1ecea25d123d6335e7f28bba8c28d6e5703d1e75e3c5 fix-nodes-newline-escape.patch 6dd8b55c0aa5f6285201d7812ebf64ea6fbe030f731797a95d5815b827a5dd138ede2b0524953f4401783f26127500cf4b12f05bcbd32e197f9080647826e2f1 add-power-support.patch 959673eac4239c1886d9f1ef17eb81ea179bcfc539289bd36b19152ba6b6094b13218593afe6a4245957e3b343aeaa5a38edc167d6fedfeeff386eb7ae675aef allperms.patch 58ae3ec4a1535fddd4af67803c081c9ca4cd66244ea2a7ddfbf59eb5b849421377116376d893d5e643a15413b902463affa51153afeb2d2217bac135122b66a5 sys-types.patch 7afcc78589ee66c60dd7a73819b4776531a4fc0f73c8a8824f4b53967f7c903095206455d2b113288ad4cf337e67c0dc82cd679b994096c5d9270f83d55689ad kobjcache.patch 9f7a2baa250baf8da686d52d16cacae3648e70b044c812bfb3e33100675a1de010b86cf2bdd39d86b957c5ccd16790c443918d0f0a66dfd5b5d7209b667a255b obstack.patch 042dee4ff7720708bee55982c876ce48645f856c902481317dad9abacc405aede40b9c4f7078bf0fe3a8fa85c788de029e7bbc6b1c5ad668a842265f6a9a873e os-linux.patch"