PKGBUILDs/extra/mutter/PKGBUILD
2016-03-14 23:16:28 +00:00

49 lines
1.6 KiB
Bash

# $Id$
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Michael Kanis <mkanis_at_gmx_dot_de>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - set --enable-compile-warnings=no in configure
pkgname=mutter
pkgver=3.18.3
pkgrel=2
pkgdesc="A window manager for GNOME"
arch=(i686 x86_64)
license=('GPL')
depends=('clutter' 'dconf' 'gobject-introspection-runtime' 'gsettings-desktop-schemas' 'libcanberra' 'startup-notification' 'zenity' 'libsm' 'gnome-desktop' 'upower' 'libxkbcommon-x11' 'gnome-settings-daemon' 'libgudev')
makedepends=('intltool' 'libxkbcommon-x11' 'gobject-introspection')
conflicts=('mutter-wayland')
replaces=('mutter-wayland')
url="http://www.gnome.org"
groups=('gnome')
options=('!emptydirs')
install=mutter.install
source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz
pointer.patch)
sha256sums=('58dd88d5596bb0377ae3aed692b306995de45aefae9e215cfaf4b13287526846'
'e413bbdaa7195f4604b77eee7239bad234ba0888acf45cbf372b55928a821a4e')
prepare() {
cd "$pkgname-$pkgver"
patch -Np1 -i ../pointer.patch
}
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --sysconfdir=/etc \
--libexecdir=/usr/lib/mutter \
--localstatedir=/var --disable-static \
--disable-schemas-compile --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
}
package() {
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}