-package() { +build() +{
- cd "${srcdir}/${pkgname}/${pkgname}" || exit
- gcc -o hackbench hackbench.c -lpthread
+}
+package() +{ mkdir -p "${pkgdir}/lkp/benchmarks/${pkgname}"
- cd "$srcdir/rt-tests-${pkgver}"
- make install DESTDIR="${pkgdir}/lkp/benchmarks/${pkgname}"
- cp -rf "${srcdir}/${pkgname}/${pkgname}" "${pkgdir}/lkp/benchmarks/${pkgname}"
I think you'd better change the functionname, there is no any package action.
Thanks, Xijian