From c707416166cba430d1db4f568def3ceae58070db Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 31 Jul 2012 22:19:40 -0400 Subject: Install source package data. --- (limited to 'src') diff --git a/src/opkbuild.sh b/src/opkbuild.sh index 80921c1..ee89e47 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -246,7 +246,30 @@ setup_package() build_source() { - # TODO: Build source package. + oh_info "${oh_str_installing_src_pkg_files}" + + src_pkg_data_base="src:${OH_SOURCE}.data/usr/src" + src_pkg_data_base="${src_pkg_data_base}/${OH_SOURCE}_${OH_SOURCE_VERSION}" + + "${OPT_UID0_CMD}" mkdir -p \ + "${src_pkg_data_base}" || \ + oh_error "${oh_str_cant_make_src_pkg_dir}" + + for file in ../*; do + case "${file}" in + ../tmp) + ;; + ../*) + "${OPT_UID0_CMD}" cp -R "${file}" "${src_pkg_data_base}" || \ + oh_error "${oh_str_cant_install_src_pkg_file}" + ;; + esac + done + + # TODO: oh-gencontrol + # TODO: oh-buildopk + + rm -Rf "src:${OH_SOURCE}.data" || oh_error "${oh_str_cant_rm_src_pkg_data}" } setup_build() -- cgit v0.9.1