mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# $Id$
|
|
# 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.2.1
|
|
pkgrel=1
|
|
pkgdesc='Portable and efficient C programming interface (API) to determine the call-chain of a program'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.nongnu.org/libunwind/'
|
|
license=('GPL')
|
|
depends=('glibc' 'xz')
|
|
depends_arm=('libatomic_ops')
|
|
makedepends=('texlive-core')
|
|
source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
|
|
sha512sums=('af7c280d2a963779a4a2711887618bc96383011e4e5d52e4085aa7fb351e55e357468f6ff85e66a216f1c6826538f498335a917a5970575c93be74c96316319b'
|
|
'SKIP')
|
|
validpgpkeys=('5C96BDEAF5F47FB02BD4F6B965D98560914F3F48' # Arun Sharma
|
|
'1675C8DA2EF907FB116EB709EC52B396E6874AF2') # Dave Watson
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
[[ $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:
|