summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 62ec0c631b4678e76678d3d09c93f2c4c4ab5af8 (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
52
# Maintainer: Emanuel Fernandes <efernandes@tektorque.com>
# Contributor: Joel Teichroeb <joel@teichroeb.net>
# Contributor: atie H. <atie.at.matrix@gmail.com>
# Contributor: alesko <askondro@gmail.com>

pkgname=clutter-git
pkgver=1.26.2.r81.g3e3901c0a
pkgrel=1
pkgdesc="A toolkit for creating fast, portable, compelling dynamic UIs"
arch=('i686' 'x86_64')
url='http://clutter-project.org/'
license=('LGPL')
depends=(gtk3 cogl libinput)
makedepends=(git gobject-introspection gtk-doc)
provides=("clutter=${pkgver}")
conflicts=('clutter')
source=('git+https://gitlab.gnome.org/GNOME/clutter.git')
md5sums=('SKIP')

pkgver() {
    cd clutter
    git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
    cd clutter
    NOCONFIGURE=1 ./autogen.sh
}

build() {
    cd clutter

    ./configure --prefix=/usr \
        --enable-introspection \
        --enable-egl-backend \
        --enable-gdk-backend \
        --enable-wayland-backend \
        --enable-x11-backend \
        --enable-evdev-input \
        --enable-wayland-compositor \
        --enable-gtk-doc

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

    make
}

package() {
    cd clutter
    make DESTDIR="$pkgdir" install
}