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>
|
2022-08-21 03:36:47 +00:00
|
|
|
# - upstream patch to determine page size dynamically
|
2015-07-11 16:04:45 +00:00
|
|
|
|
|
|
|
pkgname=libunwind
|
2021-12-24 17:21:19 +00:00
|
|
|
pkgver=1.6.2
|
2022-11-17 23:37:25 +00:00
|
|
|
pkgrel=2
|
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')
|
2020-05-19 01:52:57 +00:00
|
|
|
url='https://www.nongnu.org/libunwind/'
|
2015-07-11 16:04:45 +00:00
|
|
|
license=('GPL')
|
2021-02-24 12:59:13 +00:00
|
|
|
depends=('xz' 'zlib')
|
2017-05-04 05:40:51 +00:00
|
|
|
makedepends=('texlive-core')
|
2022-11-17 23:37:25 +00:00
|
|
|
options=('debug')
|
2022-08-21 03:36:47 +00:00
|
|
|
source=("https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}
|
|
|
|
'https://github.com/libunwind/libunwind/commit/e85b65cec757ef589f28957d0c6c21c498a03bdf.patch')
|
2021-12-24 17:21:19 +00:00
|
|
|
sha512sums=('1d17dfb14f99a894a6cda256caf9ec481c14068aaf8f3a85fa3befa7c7cca7fca0f544a91a3a7c2f2fc55bab19b06a67ca79f55ac9081151d94478c7f611f8f7'
|
2022-08-21 03:36:47 +00:00
|
|
|
'SKIP'
|
|
|
|
'c75a67496b6e68c8f85193a2d6c161f5db657119561ce1a6c478e4dd957cff7d22e2f57092f9ce2d97d4d0be4067775f45bdaa449a587e785758da1e305763c6')
|
2017-05-04 05:40:51 +00:00
|
|
|
validpgpkeys=('5C96BDEAF5F47FB02BD4F6B965D98560914F3F48' # Arun Sharma
|
2021-02-01 23:56:47 +00:00
|
|
|
'1675C8DA2EF907FB116EB709EC52B396E6874AF2' # Dave Watson
|
|
|
|
'75D2CFC56CC2E935A4143297015A268A17D55FA4') # Dave Watson
|
2015-07-11 16:04:45 +00:00
|
|
|
|
2022-08-21 03:36:47 +00:00
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p1 -i ../e85b65cec757ef589f28957d0c6c21c498a03bdf.patch
|
|
|
|
}
|
|
|
|
|
2015-07-11 16:04:45 +00:00
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2017-05-04 05:40:51 +00:00
|
|
|
./configure --prefix=/usr
|
2021-02-24 12:59:13 +00:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
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
|
|
|
}
|
|
|
|
|
2022-11-17 23:37:25 +00:00
|
|
|
# vim:set sw=2 sts=-1 et:
|