Skip to content

Instantly share code, notes, and snippets.

@lubosz
Created February 23, 2017 14:46
Show Gist options
  • Select an option

  • Save lubosz/93002f1f42c45552b6f60c92446cd588 to your computer and use it in GitHub Desktop.

Select an option

Save lubosz/93002f1f42c45552b6f60c92446cd588 to your computer and use it in GitHub Desktop.
mutter-git
# $Id: PKGBUILD 284918 2016-12-28 05:27:10Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: Ionut Biru <ibiru@archlinux.org>
# Contributor: Michael Kanis <mkanis_at_gmx_dot_de>
pkgname=mutter-git
pkgver=3.23.3+141+g57f80f091
pkgrel=1
pkgdesc="A window manager for GNOME"
url="https://git.gnome.org/browse/mutter"
arch=(i686 x86_64)
license=(GPL)
depends=(dconf gobject-introspection-runtime gsettings-desktop-schemas
libcanberra startup-notification zenity libsm gnome-desktop upower
libxkbcommon-x11 gnome-settings-daemon libgudev libinput)
makedepends=(intltool gobject-introspection git gnome-common)
groups=(gnome)
options=(!emptydirs)
#_commit=06f5b6b3e37eb96b91b475b1e57a3f1056ab815a # gnome-3-22
source=("git+git://git.gnome.org/mutter"
startup-notification.patch)
sha256sums=('SKIP'
'5a35ca4794fc361219658d9fae24a3ca21a365f2cb1901702961ac869c759366')
conflicts=(mutter)
provides=(mutter=$pkgver)
pkgver() {
cd mutter
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd mutter
# https://bugs.archlinux.org/task/51940
patch -Np1 -i ../startup-notification.patch
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd mutter
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
--libexecdir=/usr/lib/$pkgname --disable-static \
--disable-schemas-compile --enable-compile-warnings=minimum \
--enable-gtk-doc --enable-egl-device
#https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -e 's/ -shared / -Wl,-O1,--as-needed\0/g' \
-i {.,cogl,clutter}/libtool
make
}
package() {
cd mutter
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment