# Description: BSD licensed ELF toolchain # URL: https://sourceforge.net/projects/elftoolchain/ # Maintainer: protonesso, nagakamira at gmail dot com # Depends on: bmake 9base # Section: devel name=elftoolchain version=0.7.1 snapshot=r3933 release=3 source=("https://github.com/ataraxialinux/storage/raw/master/elftoolchain-code-$snapshot-trunk.zip") build() { filter-flags -fomit-frame-pointer cd "$SRC"/elftoolchain-code-$snapshot-trunk patch -Np1 -i "$STUFF"/elftoolchain/0001-Ataraxia-GNU-Linux.patch sed -i 's/-static/-static-pie/g' */Makefile mkdir -p common/sys cp "$STUFF"/include/sys/queue.h common/sys bmake WITH_TESTS=no bmake WITH_TESTS=no DESTDIR="$PKG" install rm -rf \ "$PKG"/usr/lib \ "$PKG"/usr/include }