summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Sun2018-12-03 15:33:07 -0500
committerAndrew Sun2018-12-03 15:33:07 -0500
commit004df58ae4bb7c639c4df4df2a5092e3c89aa0fa (patch)
tree915fe8dcf5a76dc3ea9c724281837ce658065a3a
parent4200f122128bab1b09678a35dcea11c4ed19c6da (diff)
downloadaur-004df58ae4bb7c639c4df4df2a5092e3c89aa0fa.tar.gz
backward-cpp: update to 1.4
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD46
2 files changed, 33 insertions, 26 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f398ce09d70..45a71975007 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,19 @@
pkgbase = backward-cpp
pkgdesc = A beautiful stack trace pretty printer for C++.
- pkgver = 1.3
+ pkgver = 1.4
pkgrel = 1
url = https://github.com/bombela/backward-cpp
arch = i686
arch = x86_64
license = MIT
- depends = binutils
- source = https://github.com/bombela/backward-cpp/archive/v1.3.tar.gz
- sha256sums = 4bf3fb7029ff551acda6578d9d8e13d438ebdd82a787a82b157728e3af6b5dec
+ makedepends = cmake
+ makedepends = binutils
+ makedepends = libelf
+ makedepends = libdwarf
+ depends = glibc
+ depends = gcc-libs
+ source = backward-cpp-1.4.tar.gz::https://github.com/bombela/backward-cpp/archive/v1.4.tar.gz
+ sha256sums = ad73be31c5cfcbffbde7d34dba18158a42043a109e7f41946f0b0abd589ed55e
pkgname = backward-cpp
diff --git a/PKGBUILD b/PKGBUILD
index 5348feb401a..defba319596 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,39 @@
-# Maintainer: Kevin Cox <kevincox@kevincox.ca>
+# Maintainer: Andrew Sun <adsun701@gmail.com>
+# Contributor: Kevin Cox <kevincox@kevincox.ca>
+
pkgname=backward-cpp
-pkgver=1.3
+pkgver=1.4
pkgrel=1
pkgdesc="A beautiful stack trace pretty printer for C++."
url="https://github.com/bombela/backward-cpp"
arch=('i686' 'x86_64')
license=('MIT')
-depends=('binutils')
-source=("https://github.com/bombela/backward-cpp/archive/v$pkgver.tar.gz")
-sha256sums=('4bf3fb7029ff551acda6578d9d8e13d438ebdd82a787a82b157728e3af6b5dec')
+depends=('glibc' 'gcc-libs')
+makedepends=('cmake' 'binutils' 'libelf' 'libdwarf')
+source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/bombela/backward-cpp/archive/v${pkgver}.tar.gz")
+sha256sums=('ad73be31c5cfcbffbde7d34dba18158a42043a109e7f41946f0b0abd589ed55e')
build() {
- cd "$srcdir/backward-cpp-$pkgver"
-
- cmake . \
- -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
- -DBACKWARD_TESTS=true \
- -DBACKWARD_SHARED=true \
- -DCMAKE_CXX_FLAGS=-I.
-
- make
+ cd "${srcdir}/backward-cpp-${pkgver}"
+ mkdir build && cd build
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBACKWARD_TESTS=true \
+ -DBACKWARD_SHARED=true \
+ ..
+
+ make
}
check() {
- cd "$srcdir/backward-cpp-$pkgver"
-
- make test
+ cd "${srcdir}/backward-cpp-${pkgver}/build"
+ make test
}
package() {
- cd "$srcdir/backward-cpp-$pkgver"
-
- make PREFIX="$pkgdir/usr" install
- install -vDm 755 libbackward.so "$pkgdir/usr/lib/libbackward.so.$pkgver"
- install -vDm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ cd "${srcdir}/backward-cpp-${pkgver}/build"
+ make install DESTDIR="${pkgdir}"
+ install -Dm755 libbackward.so "${pkgdir}/usr/lib/libbackward.so"
+ ln -s "/usr/lib/libbackward.so" "${pkgdir}/usr/lib/libbackward.so.${pkgver}"
+ install -Dm644 "${srcdir}/backward-cpp-${pkgver}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}