From 48ca75555522716f0f686dcae3dd6cf3d8ad714d Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 31 May 2022 11:05:19 +0100 Subject: removed idea of repos --- repo/elfutils/elfutils.xibuild | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 repo/elfutils/elfutils.xibuild (limited to 'repo/elfutils/elfutils.xibuild') diff --git a/repo/elfutils/elfutils.xibuild b/repo/elfutils/elfutils.xibuild new file mode 100644 index 0000000..5f7eb38 --- /dev/null +++ b/repo/elfutils/elfutils.xibuild @@ -0,0 +1,54 @@ +#!/bin/sh + +MAKEDEPS="bison flex zlib bzip2 xz argp-standalone libtool musl-obstack" +DEPS="musl zlib" + +PKG_VER=0.186 +SOURCE=https://sourceware.org/elfutils/ftp/$PKG_VER/elfutils-$PKG_VER.tar.bz2 +ADDITIONAL=" + error.h + fix-aarch64_fregs.patch + fix-uninitialized.patch + musl-macros.patch + musl-strndupa.patch + musl-asm-ptrace-h.patch +" + +DESC="Utilities and DSOs to handle ELF files and DWARF data" + +prepare () { + apply_patches + + cp error.h lib + cp error.h src + + cat > lib/libintl.h <<-EOF + #ifndef LIBINTL_H + #define LIBINTL_H + #define _(x) (x) + #endif + EOF + +} + +build () { + CFLAGS="$CFLAGS -Wno-error -Wno-null-dereference" \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-werror \ + --program-prefix=eu- \ + --enable-deterministic-archives \ + --disable-nls \ + --disable-libdebuginfod \ + --disable-debuginfod + make +} + +package() { + make DESTDIR=$PKG_DEST install + rm -r "$PKG_DEST"/usr/lib/libelf.so.* + rm -r "$PKG_DEST"/usr/include/libelf.h +} -- cgit v1.2.1