name=v
from_source=v
revision=1
imagedeps="gcc"

build() {
    cp -r ${source_dir}/. ./
    set -x
    cc $CFLAGS -w -std=gnu99 $LDFLAGS v.c -lm -lpthread -o v
    set +x
}

package() {
    rm -rf "${dest_dir}${prefix}"/v
    mkdir -p "${dest_dir}${prefix}"/v
    cp -r . "${dest_dir}${prefix}"/v/

    mkdir -p "${dest_dir}${prefix}"/bin
    ln -sf ../v/v "${dest_dir}${prefix}"/bin/v

        strip_command=strip \
    post_package_strip
}
