mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-13 11:51:38 +01:00
71 lines
2.1 KiB
Plaintext
71 lines
2.1 KiB
Plaintext
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=kbuild
|
|
pkgver=0.1.9998_pre20120806
|
|
_ver=${pkgver/_/-}
|
|
pkgrel=1
|
|
pkgdesc="A makefile framework for writing simple makefiles for complex tasks"
|
|
url="http://svn.netlabs.org/kbuild/wiki"
|
|
arch="all"
|
|
license="GPL-3"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="autoconf automake flex bison"
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="http://dev.gentoo.org/~polynomial-c/kBuild-${_ver}-src.tar.xz
|
|
kbuild-0.1.5_p2-qa.patch
|
|
lchmod.patch
|
|
strlcpy.patch
|
|
underlinking.patch
|
|
sys_siglist.patch
|
|
kbuild-0.1.9998_pre20110817-gcc-4.7.patch
|
|
uclibc.patch"
|
|
|
|
_builddir="$srcdir"/kBuild-$_ver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
cd "$_builddir"/src/kmk
|
|
aclocal -I config && autoheader && autoconf && automake --add-missing \
|
|
|| return 1
|
|
cd "$_builddir"/src/sed
|
|
aclocal -I config && autoheader && autoconf && automake --add-missing \
|
|
|| return 1
|
|
|
|
# the bootstrap process will create a symlink to the system shell,
|
|
# which happens to be (/bin/sh) a symlink to /bin/busybox
|
|
# and busybox will get confused since there are no applet named
|
|
# kmk_ash.
|
|
echo '#!/bin/sh' >"$srcdir"/sh
|
|
echo 'exec /bin/busybox sh "$@"' >> "$srcdir"/sh
|
|
chmod +x "$srcdir"/sh
|
|
sed -i -e "s:/bin/sh:$srcdir/sh:" "$_builddir"/bootstrap.gmk
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
kBuild/env.sh --full make -f bootstrap.gmk AUTORECONF=true \
|
|
|| return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="$pkgdir" install \
|
|
|| return 1
|
|
}
|
|
|
|
md5sums="520d65bd2356c26d1b9bbb25fd7d70ce kBuild-0.1.9998-pre20120806-src.tar.xz
|
|
79d4d445b28f0c50f2a7a8ca12bbed4b kbuild-0.1.5_p2-qa.patch
|
|
b3dd26cc185c96658d9b554eef2f811c lchmod.patch
|
|
90cae3b53b4ec6fc5f1c336922083df0 strlcpy.patch
|
|
ca09174d7c885fdea1e3c2dc580d80b3 underlinking.patch
|
|
52c3450a3e2645f57871b0141c465776 sys_siglist.patch
|
|
2fdb2fb96c48371b2a15785926c9144b kbuild-0.1.9998_pre20110817-gcc-4.7.patch
|
|
b3c2d0e6902f1285c09d81f74e573c4f uclibc.patch"
|