summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Cox2017-04-23 21:01:16 +0100
committerKevin Cox2017-04-23 21:03:56 +0100
commit9e8c220f6f628f59986b2b1313e74d7ab0f234cc (patch)
treecb44763aa61d6917fd0852111608d28869f5ed60
downloadaur-9e8c220f6f628f59986b2b1313e74d7ab0f234cc.tar.gz
Initial version.
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD37
3 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f398ce09d70
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = backward-cpp
+ pkgdesc = A beautiful stack trace pretty printer for C++.
+ pkgver = 1.3
+ 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
+
+pkgname = backward-cpp
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..a4c090c65e5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+backward-*
+pkg/
+src/
+v1.3.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f7fb6df7358
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Kevin Cox <kevincox@kevincox.ca>
+pkgname=backward-cpp
+pkgver=1.3
+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')
+
+build() {
+ cd "$srcdir/backward-cpp-$pkgver"
+
+ cmake . \
+ -DCMAKE_INSTALL_PREFIX="$pkgdir/usr" \
+ -DBACKWARD_TESTS=true \
+ -DBACKWARD_SHARED=true
+
+ make
+}
+
+check() {
+ cd "$srcdir/backward-cpp-$pkgver"
+
+ make test
+}
+
+package() {
+ cd "$srcdir/backward-cpp-$pkgver"
+
+ make PREFIX="$pkgdir/usr" install
+ install -vDm 755 libbackward.a "$pkgdir/usr/lib/libbackward.a"
+ install -vDm 755 libbackward.so "$pkgdir/usr/lib/libbackward.so.$pkgver"
+ install -vDm 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}