pkgname=aim9
pkgver=1
pkgrel=1
url='http://nchc.dl.sourceforge.net/project/aimbench/aim-suite9'
arch=('i386' 'x86_64')
license=('GPL')
source=('http://gentwo.org/benchmark/s9110.tar.Z')
md5sums=('187ee75a79e0403214e12c3dc215f759')

build()
{
	cd $srcdir/aim9
	make <<-END


gcc
-O


END
	make
}

package()
{
	benchmark_path="${pkgdir}/lkp/benchmarks/${pkgname}"
	mkdir -p ${benchmark_path}
	cd $srcdir/aim9
	find . -maxdepth 1 -type f -executable ! -name ".*" \
		-exec cp -af {} $benchmark_path \;
	cp fakeh.tar $benchmark_path
	cp -af s9workfile $benchmark_path/s9workfile.all
}
