mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
46 lines
1.5 KiB
Bash
46 lines
1.5 KiB
Bash
# 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>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - build v5 with system libatomic_ops
|
|
|
|
pkgname=libunwind
|
|
pkgver=1.4.0
|
|
pkgrel=1
|
|
pkgdesc='Portable and efficient C programming interface (API) to determine the call-chain of a program'
|
|
arch=('x86_64')
|
|
url='https://www.nongnu.org/libunwind/'
|
|
license=('GPL')
|
|
depends=('glibc' 'xz')
|
|
depends_arm=('libatomic_ops')
|
|
makedepends=('texlive-core')
|
|
source=("https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
|
|
sha512sums=('60bce1e840f071d3a48cfa8e2acff988977956f659c5c04ce83f00751348fbbeddbfc54e8c9bd6ebc9073423ca5ee1816655dc5aa59fefd0a8edc9c3f7f3b913'
|
|
'SKIP')
|
|
validpgpkeys=('5C96BDEAF5F47FB02BD4F6B965D98560914F3F48' # Arun Sharma
|
|
'1675C8DA2EF907FB116EB709EC52B396E6874AF2' # Dave Watson
|
|
'75D2CFC56CC2E935A4143297015A268A17D55FA4') # Dave Watson
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
|
|
[[ $CARCH == "arm" ]] && LDFLAGS+=" -latomic_ops" && CFLAGS+=" -DAO_USE_PTHREAD_DEFS=1"
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
# This function is ``supposed'' to fail. Upstream know, but haven't fixed it.
|
|
make check || :
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|