diff options
-rw-r--r-- | PKGBUILD | 46 |
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" +} + |