build 678 Bytes
Newer Older
1 2
#!/usr/bin/env modbuild 

3 4 5 6 7
URL=$(grep -E "^${V_MAJOR}" files/version-to-URL.txt | awk '{print $2}')

echo $URL

pbuild::set_download_url "${URL}"
8 9 10 11 12 13 14 15 16 17 18 19

pbuild::add_to_group 'Programming'

pbuild::compile_in_sourcetree

pbuild::install_docfiles "legal/jdk.net/LICENSE" "release"

pbuild::compile() {
  :
}

pbuild::install() {
20
  for java_dir in $(find ${SRC_DIR} -type d | sed -n "s|^${SRC_DIR}/||p")
21 22 23 24 25 26 27 28 29 30 31 32 33
  do
    mkdir -p "${PREFIX}/${java_dir}"
    install -m 0755 -d "${PREFIX}/${java_dir}"
    for library_file in $(find ${SRC_DIR}/${java_dir} -maxdepth 1 -type f)
    do
      install -m 0755 "${library_file}" "${PREFIX}/${java_dir}"
    done
  done
}

pbuild::cleanup_src() {
  :
}