diff options
author | Chocobo1 | 2023-10-17 18:24:57 +0800 |
---|---|---|
committer | Chocobo1 | 2023-10-17 18:25:43 +0800 |
commit | e76caf7a591e0bed83a521a5ff074d26c37c415d (patch) | |
tree | 17c246b173c9f6b8655e5f551900637d89d28d2d /PKGBUILD | |
parent | 93732e42a44bd074ab2a3d66e353af2c54f81ca6 (diff) | |
download | aur-e76caf7a591e0bed83a521a5ff074d26c37c415d.tar.gz |
upgpkg: libunwind-git 1.7.2.r146.g24dc3b08-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 64 |
1 files changed, 32 insertions, 32 deletions
@@ -1,4 +1,5 @@ -# Maintainer: Vincent Grande <shoober420@gmail.com> +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> +# Previous maintainer: Vincent Grande <shoober420@gmail.com> # Contributor: Felix Yan <felixonmars@archlinux.org> # Contributor: S\u00e9bastien Luttringer # Contributor: Lawrence Lee <valheru@facticius.net> @@ -6,49 +7,48 @@ # Contributor: keystone <phillip.marvin@gmail.com> pkgname=libunwind-git -pkgver=v1.5+rc1+44+gf1cee65e +pkgver=1.7.2.r146.g24dc3b08 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') -provides=(libunwind) -conflicts=(libunwind) -makedepends=('texlive-core') +pkgdesc="Portable and efficient C programming interface (API) to determine the call-chain of a program" +arch=('i686' 'x86_64') +url="https://www.nongnu.org/libunwind/" +license=('MIT') +depends=('glibc' 'xz' 'zlib') +makedepends=('git' 'texlive-core') +provides=("libunwind=$pkgver") +conflicts=('libunwind') +options=('staticlibs') source=("git+https://github.com/libunwind/libunwind.git") -sha512sums=('SKIP') -validpgpkeys=('SKIP' # Arun Sharma - 'SKIP') # Dave Watson +sha256sums=('SKIP') -pkgver() { - cd libunwind - git describe --tags | sed 's/-/+/g' -} -prepare() { - cd libunwind +pkgver() { + cd "libunwind" - NOCONFIGURE=1 ./autogen.sh + _tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9\.]+$' | head -n1) + _rev=$(git rev-list --count $_tag..HEAD) + _hash=$(git rev-parse --short HEAD) + printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//' } build() { - cd libunwind -# CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common - ./configure --prefix=/usr + cd "libunwind" + + autoreconf -fi + ./configure \ + --prefix="/usr" make } -#check() { -# cd libunwind - # This function is ``supposed'' to fail. Upstream know, but haven't fixed it. -# make check || : -#} +check() { + cd "libunwind" -package() { - cd libunwind - make DESTDIR="$pkgdir" install + make check } -# vim:set ts=2 sw=2 et: +package() { + cd "libunwind" + make DESTDIR="$pkgdir" install + install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/libunwind" +} |