Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

import 'misc/debian'
name=kbuild
dir_version=3127
version=0.1.9998svn$dir_version+dfsg
define_option '!bootstrap: Bootstrap this program'
misc_debian_download -v "$dir_version" 1 \
'4fc1123276a0d12103469972b2bb5c88' \
'fbaf1e742fc99e099eb26765d7f98270'
_
cd "$name-$version"
misc_debian_patch
cat > SvnInfo.kmk << EOF
KBUILD_SVN_URL := http://svn.netlabs.org/repos/kbuild/trunk
KBUILD_SVN_REV := $dir_version
EOF
option bootstrap kBuild/env.sh --full make -f bootstrap.gmk
kBuild/env.sh kmk rebuild
kBuild/env.sh kmk install \
NIX_INSTALL_DIR="/$dir_prefix" \
MY_INST_BIN="\$(MY_INST_ROOT)$dir_bin/" \
MY_INST_DATA="\$(MY_INST_ROOT)$dir_data/$name/" \
MY_INST_DOC="\$(MY_INST_ROOT)$dir_doc/$name/"
cp -aT out/*/release/dist "$dir_install"
install -Dm644 -t "$dir_install/$dir_prefix/$dir_man/man1" debian/manpages/kmk.1
for x in $(ls out/*/release/dist/usr/bin/* | fgrep -vx 'kmk'); do
bin="$(basename "$x")"
ln -sf kmk.1 "$dir_install/$dir_prefix/$dir_man/man1/$bin.1"
done
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: