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.
39 lines
1.3 KiB
39 lines
1.3 KiB
8 years ago
|
import 'misc/debian'
|
||
|
|
||
|
name=kBuild
|
||
|
deb_name=kbuild
|
||
|
real_version=2814
|
||
|
orig_version=0.1.9998svn$real_version+dfsg
|
||
|
version=$orig_version-2
|
||
|
update_url="http://http.debian.net/debian/pool/main/k/$deb_name/"
|
||
|
|
||
|
define_option '!bootstrap: Bootstrap this program'
|
||
|
|
||
|
dlextract "http://http.debian.net/debian/pool/main/k/$deb_name/${deb_name}_$orig_version.orig.tar.gz" \
|
||
|
'30f6102dc004235f276a5c2d9cfbe781'
|
||
|
download "http://http.debian.net/debian/pool/main/k/$deb_name/${deb_name}_$version.debian.tar.xz" \
|
||
|
'ce194754401fed5a7f992f07b7304b31'
|
||
|
header_end
|
||
|
|
||
|
cd "$deb_name-$real_version"
|
||
|
|
||
|
extract "${deb_name}_$version.debian.tar.xz"
|
||
|
misc_debian_patch
|
||
|
|
||
|
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_bindir/" \
|
||
|
MY_INST_DATA="\$(MY_INST_ROOT)$dir_datadir/$name/" \
|
||
|
MY_INST_DOC="\$(MY_INST_ROOT)$dir_docdir/$name/"
|
||
|
|
||
|
cp -aT out/*/release/dist "$dir_install"
|
||
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/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_mandir/man1/$bin.1"
|
||
|
done
|
||
|
|
||
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|