#!/bin/sh

name="unixbench"
title="unixbench"
package="unixbench"
version="4.1.0"
build="1"
noarch="n"
build_info="Standard build."

info="Unix benchmark utility."
desc="Unix Bench - based on the Byte Magazine Unix Benchmark."
category="system/diagnostic"
environment="console/text"
contact="$name@packages.packware.gnu.pl"
vendor="The Packware Project"
vendor_id="pw"

requires=""
obsoletes=""
conflicts=""

docs_source="README"
docs_cwd=""

strip_bin="y"
reset_own="y"
reset_dir="y"
reset_fil="y"
delete_cat="y"

. /usr/src/tgz/lib/builder.defs

add_source ftp://ftp.tux.org/pub/tux/benchmarks/System/$name/$name-$version.tgz

apply_patch unixbench-dirs.patch 1
apply_patch unixbench-am_cflags.pw.patch

parent_package="$package"
write_info main

cd $src1

do_make

mkdir -p $pkg_main/usr/lib/unixbench
cp pgms/* $pkg_main/usr/lib/unixbench
cp testdir/* $pkg_main/usr/lib/unixbench
copy Run $pkg_main/usr/bin unixbench

make_docs

make_package main

clean_up
