summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 60e55046b243aecc4cf0a14910894cc29d243406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: TingPing <tingping@tingping.se>

_basename=libpeas
pkgname=libpeas-luajit
pkgver=1.16.0
pkgrel=1
pkgdesc="A GObject-based plugins engine"
arch=(i686 x86_64)
url="http://www.gtk.org/"
provides=libpeas
conflicts=libpeas
license=(LGPL2)
depends=(gtk3 hicolor-icon-theme gobject-introspection-runtime)
makedepends=(gtk-doc intltool luajit-lgi python-gobject python2-gobject glade gobject-introspection)
install=libpeas.install
source=(http://download.gnome.org/sources/$_basename/${pkgver:0:4}/$_basename-${pkgver}.tar.xz)
sha256sums=('b093008ecd65f7d55c80517589509698ff15ad41f664b11a3eb88ff461b1454e')


build() {
  cd $_basename-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-luajit

  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

  make
}

check() {
  cd $_basename-$pkgver
  # Pygobject 3.15.x Throws deprecation message to stderr which causes failed test suite. Works fine with 3.14.x
  make check || return 0
}

package() {
  cd $_basename-$pkgver
  make DESTDIR="${pkgdir}" install
}

# vim:set ts=2 sw=2 et: