summaryrefslogtreecommitdiff
path: root/community/metacity/PKGBUILD
blob: 5955d5b88df279f37dd6f2d14a1b36672e31ba64 (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
# $Id: PKGBUILD 88686 2013-04-21 22:17:01Z heftig $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=metacity
pkgver=2.34.13
pkgrel=4
pkgdesc="Legacy GNOME window manager"
arch=('i686' 'x86_64')
license=('GPL')
depends=('dconf' 'libcanberra' 'libgtop' 'gsettings-desktop-schemas' 'gtk2' 'startup-notification' 'zenity')
makedepends=('intltool' 'itstool')
url="https://live.gnome.org/Metacity"
options=('!libtool')
install=metacity.install
source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz
        fix_compositing_startup.patch
        fix_force_quit.patch
        fix_shadows.patch
        enable_compositing.patch)
sha256sums=('8cf4dbf0da0a6f36357ce7db7f829ec685908a7792453c662fb8184572b91075'
            '5094a0ffe3eb8289ed752829877c2e1b743eddf938ad3fc92fb4574b42765ae2'
            '917760ac3375894ebb4052dfc7c8dff1ac556fb81033d7a7caf02123ceede50d'
            'a0981477e9b3fd108fd03b7637bfd1f17a1f6cb13ec703d86b424b55076096f3'
            'e53c1c20e19cd3d94d05d08045c7a9a373ce52051928ccc69bf3068081f30f9a')

build() {
  cd "$pkgname-$pkgver"

  # https://bugzilla.gnome.org/show_bug.cgi?id=658036
  patch -Np1 -i "$srcdir/fix_compositing_startup.patch"

  # https://bugzilla.gnome.org/show_bug.cgi?id=687938
  patch -Np1 -i "$srcdir/fix_force_quit.patch"

  # https://bugzilla.gnome.org/show_bug.cgi?id=648340
  patch -Np1 -i "$srcdir/fix_shadows.patch"

  # Enable compositing by default (required for the desktop rendering feature of nautilus)
  patch -Np1 -i "$srcdir/enable_compositing.patch"

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname \
              --disable-static --disable-schemas-compile
  make
}

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