# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Sébastien Luttringer
# Contributor: Lawrence Lee <valheru@facticius.net>
# Contributor: Phillip Marvin <phillip.marvin@gmail.com>
# Contributor: keystone <phillip.marvin@gmail.com>
pkgname=libunwind
pkgver=1.7.2
pkgrel=1
pkgdesc="Determine and manipulate the call-chain of a program"
url="https://www.nongnu.org/libunwind/"
arch=(armv7h 'aarch64')
license=(GPL)
depends=(
glibc
xz
zlib
)
#makedepends=(texlive-binextra)
provides=(
libunwind-{coredump,ptrace,setjmp,x86_64}.so
libunwind.so
)
source=(
https://github.com/libunwind/libunwind/releases/download/v$pkgver/libunwind-$pkgver.tar.gz{,.asc}
)
prepare() {
cd libunwind-$pkgver
}
build() {
local configure_options=(
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
)
cd libunwind-$pkgver
./configure "${configure_options[@]}"
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
#check() {
# cd libunwind-$pkgver
# make check
#}
package() {
cd libunwind-$pkgver
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/libexec
}
# vim:set sw=2 sts=-1 et:
sha256sums=('a18a6a24307443a8ace7a8acc2ce79fbbe6826cd0edf98d6326d0225d6a5d6e6'
'SKIP')