summaryrefslogtreecommitdiff
path: root/core/libelf
diff options
context:
space:
mode:
Diffstat (limited to 'core/libelf')
-rw-r--r--core/libelf/.footprint9
-rw-r--r--core/libelf/.signature6
-rw-r--r--core/libelf/MAKEPKG38
3 files changed, 53 insertions, 0 deletions
diff --git a/core/libelf/.footprint b/core/libelf/.footprint
new file mode 100644
index 0000000..297070b
--- /dev/null
+++ b/core/libelf/.footprint
@@ -0,0 +1,9 @@
+drwxr-xr-x root/root lib/
+-rwxr-xr-x root/root lib/libelf.so.1.0.193
+lrwxrwxrwx root/root lib/libelf.so -> libelf.so.1.0.193
+lrwxrwxrwx root/root lib/libelf.so.1 -> libelf.so.1.0.193
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/gelf.h
+-rw-r--r-- root/root usr/include/libelf.h
+-rw-r--r-- root/root usr/include/nlist.h
diff --git a/core/libelf/.signature b/core/libelf/.signature
new file mode 100644
index 0000000..86f353e
--- /dev/null
+++ b/core/libelf/.signature
@@ -0,0 +1,6 @@
+RWTZ9IduCSQ/mLpyErhnJ7STxthGDK9IAmj/iTkqUyqvAi7t7qaA/4Bm9/l12XZYIMySCnjOlPxku4HLohAejqlmIBQ74XDeuQ0=
+
+SHA256 (MAKEPKG) = cace5ec87ca9fef925ad93f7efe11fe1970d4eb01d437b58932239ca4c59be77
+SHA256 (.footprint) = de5eaf47a56bc88eb528ab596798af72a7351b11d6c1fc4f6886cda0962434eb
+SHA256 (libelf-0.193.tar.gz) = 6253395679c2bb2156d926b3d8b7e3b2bbeb40a56d2bea29e1c73e40ed9de4ba
+SHA256 (libelf#0.193-1.pkg.tar.gz) = 44eb408e930033a14d7523610239bf85a634574cd7bca0eb0ecef260c43edcaa
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