blob: 67e5243fb9f03bc774dd96aa64af940a69c4ae34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|