description="Portable and efficient C programming interface (API) to determine the call-chain of a program" url="http://www.nongnu.org/libunwind/" makedepends=(xz) packager="spiky " contributors="Pierre,Tnut" name=libunwind version=1.8.1 source=(https://github.com/libunwind/libunwind/releases/download/v$version/$name-$version.tar.gz) build() { cd $name-$version CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common ./configure --prefix=/usr make make DESTDIR=$PKG install } package() { # Obsolet libs rm $PKG/usr/lib/libunwind-coredump.la rm $PKG/usr/lib/libunwind-ptrace.la rm $PKG/usr/lib/libunwind-setjmp.la rm $PKG/usr/lib/libunwind-x86_64.la rm $PKG/usr/lib/libunwind.la }