From 1da2593a03f3d0cb39c9e174df5783048d327677 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Tue, 14 Apr 2015 19:24:18 +0000 Subject: [PATCH] added extra/gnome-builder --- extra/gnome-builder/PKGBUILD | 42 +++++++++++++++++++++++ extra/gnome-builder/arm.patch | 15 ++++++++ extra/gnome-builder/gnome-builder.install | 12 +++++++ 3 files changed, 69 insertions(+) create mode 100644 extra/gnome-builder/PKGBUILD create mode 100644 extra/gnome-builder/arm.patch create mode 100644 extra/gnome-builder/gnome-builder.install diff --git a/extra/gnome-builder/PKGBUILD b/extra/gnome-builder/PKGBUILD new file mode 100644 index 000000000..59b5d13b5 --- /dev/null +++ b/extra/gnome-builder/PKGBUILD @@ -0,0 +1,42 @@ +# $Id$ +# Maintainer: Jan Alexander Steffens (heftig) + +# ALARM: Kevin Mihelich +# - patch to fix build on ARM + +pkgname=gnome-builder +pkgver=3.16.1 +pkgrel=1 +pkgdesc="An IDE for writing GNOME-based software" +url="https://wiki.gnome.org/Apps/Builder" +arch=(i686 x86_64) +license=(GPL3) +depends=(gtksourceview3 devhelp libgit2-glib gjs python-gobject clang) +makedepends=(intltool llvm gobject-introspection) +groups=(gnome-extra) +install=gnome-builder.install +source=(http://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz + arm.patch) +sha256sums=('1cb9b66f3b0a6b99a2360bab155d9fa1748e5a80590481b4bce900a378064947' + 'e56bb096be7b6fae0725efa5846e2376177e12b6b0495e04c21c13d771c38b34') + +prepare() { + cd $pkgname-$pkgver + patch -p1 -i ../arm.patch +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var + make +} + +check() { + cd $pkgname-$pkgver + make -k check || : +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/extra/gnome-builder/arm.patch b/extra/gnome-builder/arm.patch new file mode 100644 index 000000000..38621cc6f --- /dev/null +++ b/extra/gnome-builder/arm.patch @@ -0,0 +1,15 @@ +diff -urN a/libide/ide-highlight-index.c b/libide/ide-highlight-index.c +--- a/libide/ide-highlight-index.c 2015-04-08 00:43:25.000000000 -0600 ++++ b/libide/ide-highlight-index.c 2015-04-14 13:18:59.080511371 -0600 +@@ -28,6 +28,11 @@ + G_DEFINE_BOXED_TYPE (IdeHighlightIndex, ide_highlight_index, + ide_highlight_index_ref, ide_highlight_index_unref) + ++#ifndef PAGE_SIZE ++#include ++#define PAGE_SIZE sysconf(_SC_PAGESIZE) ++#endif ++ + struct _IdeHighlightIndex + { + volatile gint ref_count; diff --git a/extra/gnome-builder/gnome-builder.install b/extra/gnome-builder/gnome-builder.install new file mode 100644 index 000000000..f7e8c46ac --- /dev/null +++ b/extra/gnome-builder/gnome-builder.install @@ -0,0 +1,12 @@ +post_install() { + glib-compile-schemas /usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}