libexecinfo: fix symbolic link

This commit is contained in:
newbluemoon 2018-03-05 20:26:22 +01:00 committed by Jürgen Buchmüller
parent 4af4ccd61f
commit 943f9e2508
1 changed files with 3 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'libexecinfo'
pkgname=libexecinfo
version=1.1
revision=1
revision=2
build_style=gnu-makefile
short_desc="A quick-n-dirty BSD licensed clone of the GNU libc backtrace facility"
maintainer="John <johnz@posteo.net>"
@ -9,18 +9,14 @@ license="BSD-2"
homepage="http://www.freshports.org/devel/libexecinfo"
distfiles="http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-${version}.tar.bz2"
checksum=c9a21913e7fdac8ef6b33250b167aa1fc0a7b8a175145e26913a4c19d8a59b1f
case "$XBPS_TARGET_MACHINE" in
*-musl) ;;
*) broken="Only for musl libc" ;;
esac
only_for_archs="x86_64-musl i686-musl aarch64-musl armv7l-musl armv6l-musl armv5te-musl mips-musl mipsel-musl mipshf-musl mipselhf-musl"
do_install() {
vinstall execinfo.h 644 usr/include
vinstall stacktraverse.h 644 usr/include
vinstall libexecinfo.a 755 usr/lib
vinstall libexecinfo.so.1 755 usr/lib
ln -s /usr/lib/libexecinfo.so.1 ${DESTDIR}/usr/lib/libexecinfo.so
ln -s libexecinfo.so.1 ${DESTDIR}/usr/lib/libexecinfo.so
head -28 execinfo.c > LICENSE
vlicense LICENSE
}