#!/bin/mkpkg # description: Lightweight ELF library (arachsys fork) # url: https://github.com/arachsys/libelf name=libelf version=0.193 release=1 depends=(zlib zstd) source=(https://github.com/arachsys/libelf/archive/refs/tags/v$version.tar.gz) renames=($name-$version.tar.gz) sha256sums=( "6253395679c2bb2156d926b3d8b7e3b2bbeb40a56d2bea29e1c73e40ed9de4ba" ) patch() { cd $name-$version # Disable gettext/libintl for musl sed -i 's/#include //' src/eu-config.h sed -i 's/#define _(Str) dgettext ("elfutils", Str)/#define _(Str) (Str)/' src/eu-config.h } build() { cd $name-$version make PREFIX=/usr LIBDIR=/lib make PREFIX=/usr LIBDIR=/lib DESTDIR=$PKG install rm -f $PKG/lib/*.a } signify() { untrusted comment: public key RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 } # vim: filetype=sh