summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-09-28 13:17:43 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-09-28 13:17:43 +0200
commit5a1fbb6bd66ba26b3666275275e6a9e01a0ad7ff (patch)
treed75bd43421c845da6f1d2563f3cc42b23b75f8c2
downloadbreakpad-git-5a1fbb6bd66ba26b3666275275e6a9e01a0ad7ff.tar.xz
Initial commit
-rw-r--r--PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..3848ca1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Aqua-sama <aqua@iserlohn-fortress.net>
+
+pkgname=breakpad-git
+pkgdesc='An open-source multi-platform crash reporting system'
+
+pkgver=0
+pkgrel=1
+
+url="https://chromium.googlesource.com/breakpad/breakpad"
+
+arch=('x86_64')
+license=('BSD-3clause')
+
+depends=()
+optdepends=()
+makedepends=('git' 'make')
+options=('staticlibs' '!strip')
+source=("git+https://chromium.googlesource.com/breakpad/breakpad")
+conflicts=('google-breakpad-svn' 'google-breakpad-git')
+sha512sums=('SKIP')
+
+prepare() {
+ cd $srcdir/breakpad/src/third_party
+ if [ ! -f lss/linux_syscall_support.h ]; then
+ mkdir lss
+ curl -L https://chromium.googlesource.com/linux-syscall-support/+/master/linux_syscall_support.h?format=TEXT | base64 --decode > lss/linux_syscall_support.h
+ fi
+}
+
+pkgver() {
+ cd $srcdir/breakpad
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd breakpad
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd breakpad
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+}
+