extra/libunwind to 1.6.2-1.1

closes #1922
This commit is contained in:
Kevin Mihelich 2022-08-21 03:36:47 +00:00
parent f0059dacb3
commit 1b30965004

View file

@ -5,28 +5,33 @@
# Contributor: keystone <phillip.marvin@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build v5 with system libatomic_ops
# - upstream patch to determine page size dynamically
pkgname=libunwind
pkgver=1.6.2
pkgrel=1
pkgrel=1.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=('xz' 'zlib')
depends_arm=('libatomic_ops')
makedepends=('texlive-core')
source=("https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
source=("https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
'https://github.com/libunwind/libunwind/commit/e85b65cec757ef589f28957d0c6c21c498a03bdf.patch')
sha512sums=('1d17dfb14f99a894a6cda256caf9ec481c14068aaf8f3a85fa3befa7c7cca7fca0f544a91a3a7c2f2fc55bab19b06a67ca79f55ac9081151d94478c7f611f8f7'
'SKIP')
'SKIP'
'c75a67496b6e68c8f85193a2d6c161f5db657119561ce1a6c478e4dd957cff7d22e2f57092f9ce2d97d4d0be4067775f45bdaa449a587e785758da1e305763c6')
validpgpkeys=('5C96BDEAF5F47FB02BD4F6B965D98560914F3F48' # Arun Sharma
'1675C8DA2EF907FB116EB709EC52B396E6874AF2' # Dave Watson
'75D2CFC56CC2E935A4143297015A268A17D55FA4') # Dave Watson
prepare() {
cd $pkgname-$pkgver
patch -p1 -i ../e85b65cec757ef589f28957d0c6c21c498a03bdf.patch
}
build() {
cd $pkgname-$pkgver
[[ $CARCH == "arm" ]] && LDFLAGS+=" -latomic_ops" && CFLAGS+=" -DAO_USE_PTHREAD_DEFS=1"
./configure --prefix=/usr
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make