On Wed, Nov 04, 2020 at 06:13:26PM +0800, Bai Jing wrote:
Signed-off-by: Bai Jing 799286817@qq.com
pkg/libmicro/PKGBUILD | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pkg/libmicro/PKGBUILD
diff --git a/pkg/libmicro/PKGBUILD b/pkg/libmicro/PKGBUILD new file mode 100644 index 00000000..8efc8b19 --- /dev/null +++ b/pkg/libmicro/PKGBUILD @@ -0,0 +1,19 @@ +pkgname=libMicro +pkgver=0.4 +pkgrel=0 +pkgdesc="A portable set of microbenchmarks focused on the syscall and system library interfaces." +arch=('i386' 'x86_64') +url="https://codeload.github.com/redhat-performance/libMicro"
Why can't access this url? 400: Invalid request
+license=('CDDL') +source=("https://codeload.github.com/redhat-performance/libMicro/zip/0.4.0-rh")
Because you have written fields: pkgver and pkgrel, so change '0.4.0' to '${pkgver}.${pkgrel}'
Thanks, RenWen
+md5sums=('SKIP')
+build() {
- cd "$srcdir/$pkgname-$pkgver.$pkgrel-rh"
- make
+}
+package() {
- mkdir -p "$pkgdir/lkp/benchmarks/libMicro"
- cp -r "$srcdir/$pkgname-$pkgver.$pkgrel-rh/"* "$pkgdir/lkp/benchmarks/libMicro"
+}
2.23.0