33 lines
830 B
Bash
33 lines
830 B
Bash
# Maintainer: Future Linux Team <futurelinux@163.com>
|
|
|
|
pkgname=libelf
|
|
pkgver=0.191
|
|
pkgrel=1
|
|
pkgdesc="Handle ELF object files and DWARF debugging information (libraries)"
|
|
arch=('x86_64')
|
|
url="https://sourceware.org/elfutils/"
|
|
license=('GPL-2.0-or-later OR LGPL-3.0-or-later')
|
|
depends=('bzip2' 'gcc-libs' 'glibc' 'xz' 'zlib' 'zstd')
|
|
source=(https://sourceware.org/elfutils/ftp/${pkgver}/elfutils-${pkgver}.tar.bz2)
|
|
sha256sums=(df76db71366d1d708365fc7a6c60ca48398f14367eb2b8954efc8897147ad871)
|
|
|
|
build() {
|
|
cd elfutils-${pkgver}
|
|
|
|
CFLAGS+=" -ffat-lto-objects"
|
|
|
|
${CONFIGURE} \
|
|
--disable-debuginfod \
|
|
--enable-libdebuginfod=dummy
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd elfutils-${pkgver}
|
|
|
|
make -C libelf DESTDIR=${pkgdir} install
|
|
|
|
install -vDm644 config/libelf.pc ${pkgdir}/usr/lib64/pkgconfig/libelf.pc
|
|
}
|