32 lines
742 B
Text
32 lines
742 B
Text
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
app=libelf-compat
|
|
version=0.152c001
|
|
build=1sml
|
|
homepage="https://sourceware.org/elfutils/"
|
|
desc="library for manipulating ELF headers"
|
|
requires="musl"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf $app-$version
|
|
|
|
tar xf $srcdir/$app-$version.tar.?z*
|
|
cd $app-$version
|
|
fixbuilddirpermissions
|
|
}
|
|
|
|
build() {
|
|
echo "CFLAGS += $CFLAGS -fPIC" > config.mak
|
|
sed -i 's@HEADERS = src/libelf.h@HEADERS = src/libelf.h src/gelf.h@' Makefile
|
|
|
|
make
|
|
make prefix= install DESTDIR="$pkg"
|
|
|
|
cp COPYING $pkgdocs/
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
sha512sums="
|
|
8e87c4ae5e073dcf88e8b7fbdfc4512de67a49e3288c576b705ac7af3a2023ba994756180c4b817a45f5bffc8915b22f19908fdd48a1412aae62bf1888e74b66 libelf-compat-0.152c001.tar.lz
|
|
"
|