diff options
| author | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
|---|---|---|
| committer | rawnix ports <ports@rawnix.org> | 2026-09-26 18:19:05 +0000 |
| commit | c82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch) | |
| tree | 56d864b5a5c6c145edd96178ae219a8f90e191a6 /core/libelf/MAKEPKG | |
| download | ports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz | |
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'core/libelf/MAKEPKG')
| -rw-r--r-- | core/libelf/MAKEPKG | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/core/libelf/MAKEPKG b/core/libelf/MAKEPKG new file mode 100644 index 0000000..67e5243 --- /dev/null +++ b/core/libelf/MAKEPKG @@ -0,0 +1,38 @@ +#!/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 <libintl.h>//' 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 |
