#!/usr/bin/env beesh

# BEE_VERSION nbench-byte-2.2.3-3

# more info: https://www.math.utah.edu/~mayer/linux/bmark.html

# SRCURL[0]="http://www.math.utah.edu/~mayer/linux/nbench-byte-${PKGVERSION}.tar.gz"
SRCURL[0]="https://beehive.molgen.mpg.de/285dfab361080759d477ea1fe7d3093a/nbench-byte-2.2.3.tar.gz"

#PATCHURL+=(/src/mariux/patches/nbench-byte-2.2.3-fix-cflags.patch)
#PATCHURL+=(/src/mariux/patches/nbench-byte-2.2.3-fix-parallel-make.patch)
#PATCHURL+=(/src/mariux/patches/nbench-byte-2.2.3-fix-dat-path.patch)
PATCHURL+=("https://beehive.molgen.mpg.de/5814e5bbee96c898a48f0770f8ae0482/nbench.patch")

# build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
#    bee_extract "${@}"
#}

#mee_configure() {
#    bee_configure
#}

#mee_build() {
#    bee_build
#}

mee_install() {
    mkdir -p $D/usr/sbin
    cp -va nbench $D/usr/sbin

    mkdir -p $D/usr/share/nbench
    cp -va NNET.DAT $D/usr/share/nbench
}