32 lines
827 B
Plaintext
32 lines
827 B
Plaintext
pkgname="libelf"
|
|
_pkgbase="elfutils"
|
|
pkgver=0.191
|
|
pkgdesc="Handle ELF object files and DWARF debugging information (lib)"
|
|
license=("GPL-2.0-or-later OR LGPL-3.0-or-later")
|
|
homepage="https://sourceware.org/elfutils/"
|
|
sources=("${_pkgbase}-${pkgver}.tar.bz2")
|
|
urls=("https://sourceware.org/ftp/${_pkgbase}/${pkgver}/${sources[0]}")
|
|
md5sums="636547248fb3fae58ec48030298d3ef7"
|
|
|
|
src_prepare() {
|
|
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
|
}
|
|
|
|
src_build() {
|
|
./configure --prefix=/usr \
|
|
--disable-debuginfod \
|
|
--enable-libdebuginfod=dummy
|
|
make
|
|
}
|
|
|
|
src_check() {
|
|
make check
|
|
}
|
|
|
|
src_install() {
|
|
make -C ${pkgname} DESTDIR="${pkgdir}" install
|
|
install -vm644 config/libelf.pc "${pkgdir}/usr/lib/pkgconfig"
|
|
rm -v "${pkgdir}/usr/lib/libelf.a"
|
|
}
|
|
|