summaryrefslogtreecommitdiff
path: root/extra/libpeas/PKGBUILD
blob: cb2b98529abf6aebd72bee0af5cad8889596fe63 (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
43
44
45
46
47
48
49
50
51
# $Id: PKGBUILD 188712 2013-06-18 13:46:20Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>

pkgname=libpeas
pkgver=1.8.1
pkgrel=1
pkgdesc="A GObject-based plugins engine"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gtk.org/"
license=(GPL2)
depends=(gtk3 hicolor-icon-theme gobject-introspection)
makedepends=(gtk-doc intltool python-gobject python2-gobject seed glade)
optdepends=('seed: gobject-based plugin engine - seed runtime loader')
if [ "$CARCH" != "mips64el" ]; then
  makedepends+=(gjs)
  optdepends+=('gjs: gobject-based plugin engine - gjs runtime loader')
fi
options=('!libtool')
install=libpeas.install
source=(http://download.gnome.org/sources/$pkgname/${pkgver%.*}/$pkgname-${pkgver}.tar.xz
        js17.patch)
sha256sums=('ff0e7cd1f0da5dc1289efdd4662a06188f8f0fb088eac67abe05ffa66ba7751d'
            '094f28f911de979167c870b3ed51df09dbe3cacc271b375d891d7601c51ad44f')

prepare() {
  cd $pkgname-$pkgver
  patch -Np1 -i ../js17.patch
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr \
    --sysconfdir=/etc --localstatedir=/var --enable-compile-warnings=no

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

  make
}

check() {
  cd $pkgname-$pkgver
  make check
}

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

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