2017-05-04 05:40:51 +00:00
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
# Contributor: Sébastien Luttringer
|
2015-07-11 16:04:45 +00:00
|
|
|
# Contributor: Lawrence Lee <valheru@facticius.net>
|
|
|
|
# Contributor: Phillip Marvin <phillip.marvin@gmail.com>
|
|
|
|
# Contributor: keystone <phillip.marvin@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2015-10-01 00:21:39 +00:00
|
|
|
# - build v5 with system libatomic_ops
|
2015-07-11 16:04:45 +00:00
|
|
|
|
|
|
|
pkgname=libunwind
|
2019-01-26 16:52:34 +00:00
|
|
|
pkgver=1.3.1
|
|
|
|
pkgrel=1
|
2015-07-11 16:04:45 +00:00
|
|
|
pkgdesc='Portable and efficient C programming interface (API) to determine the call-chain of a program'
|
2018-11-13 19:34:57 +00:00
|
|
|
arch=('x86_64')
|
2015-07-11 16:04:45 +00:00
|
|
|
url='http://www.nongnu.org/libunwind/'
|
|
|
|
license=('GPL')
|
|
|
|
depends=('glibc' 'xz')
|
2015-10-01 00:21:39 +00:00
|
|
|
depends_arm=('libatomic_ops')
|
2017-05-04 05:40:51 +00:00
|
|
|
makedepends=('texlive-core')
|
|
|
|
source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
|
2019-01-26 16:52:34 +00:00
|
|
|
sha512sums=('3110d0aed4f5c781ef1ff72c9337e59793c02c42066209a4ac44f50eff1c0b0e02a5ff9f66891e62016de14af065a47975763970b839b700c0ff2e9f415c8def'
|
2017-05-04 05:40:51 +00:00
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=('5C96BDEAF5F47FB02BD4F6B965D98560914F3F48' # Arun Sharma
|
|
|
|
'1675C8DA2EF907FB116EB709EC52B396E6874AF2') # Dave Watson
|
2015-07-11 16:04:45 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2015-10-01 00:21:39 +00:00
|
|
|
[[ $CARCH == "arm" ]] && LDFLAGS+=" -latomic_ops" && CFLAGS+=" -DAO_USE_PTHREAD_DEFS=1"
|
2017-05-04 05:40:51 +00:00
|
|
|
./configure --prefix=/usr
|
2015-07-11 16:04:45 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
# This function is ``supposed'' to fail. Upstream know, but haven't fixed it.
|
2017-05-04 05:40:51 +00:00
|
|
|
make check || :
|
2015-07-11 16:04:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2017-05-04 05:40:51 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2015-07-11 16:04:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|