PKGBUILDs/extra/gnome-builder/PKGBUILD

54 lines
1.4 KiB
Bash
Raw Normal View History

2015-04-14 19:24:18 +00:00
# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix build on ARM
pkgname=gnome-builder
2016-12-23 01:22:23 +00:00
pkgver=3.22.4
2017-01-06 13:40:27 +00:00
pkgrel=2
2015-04-14 19:24:18 +00:00
pkgdesc="An IDE for writing GNOME-based software"
url="https://wiki.gnome.org/Apps/Builder"
arch=(i686 x86_64)
license=(GPL3)
2015-05-19 12:35:42 +00:00
depends=(gtksourceview3 devhelp libgit2-glib gjs python-gobject clang desktop-file-utils
2016-11-02 02:39:04 +00:00
ctags libpeas vte3 vala python-jedi autoconf-archive sysprof flatpak)
makedepends=(intltool llvm gobject-introspection gtk-doc yelp-tools appstream-glib vala git
mm-common)
2015-04-14 19:24:18 +00:00
groups=(gnome-extra)
2016-12-23 01:22:23 +00:00
_commit=054d54c8c9a6952e6480408e96decfe1955fd40d # tags/GNOME_BUILDER_3_22_4^0
source=("git+https://git.gnome.org/browse/gnome-builder#commit=$_commit"
2016-10-12 12:46:13 +00:00
'0001-ARM-fix.patch')
sha256sums=('SKIP'
'a92b25439576fe44565d3d7517be5f22d386806916fbc4abd1b3b304ed7b7ca2')
pkgver() {
cd $pkgname
git describe --tags | sed 's/^GNOME_BUILDER_//;s/_/./g;s/-/+/g'
}
2015-04-14 19:24:18 +00:00
prepare() {
2016-10-12 12:46:13 +00:00
cd $pkgname
git apply ../0001-ARM-fix.patch
NOCONFIGURE=1 ./autogen.sh
2015-04-14 19:24:18 +00:00
}
build() {
2016-10-12 12:46:13 +00:00
cd $pkgname
2015-05-18 16:07:14 +00:00
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
2016-11-29 19:04:34 +00:00
--libexecdir=/usr/lib --enable-gtk-doc --enable-meson-templates
2016-04-09 14:18:09 +00:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2015-04-14 19:24:18 +00:00
make
}
check() {
2016-10-12 12:46:13 +00:00
cd $pkgname
2015-04-14 19:24:18 +00:00
make -k check || :
}
package() {
2016-10-12 12:46:13 +00:00
cd $pkgname
2015-04-14 19:24:18 +00:00
make DESTDIR="$pkgdir" install
}